From abdfb8565531c8ea9c1167471f2e6889c5f009ad Mon Sep 17 00:00:00 2001 From: Tomasz Lukawski Date: Mon, 20 Apr 2020 15:14:08 +0200 Subject: [PATCH] (fix) Updated test for util/polar according to web engine change of behaviour Change-Id: I926e8af5858f7a5cda8d25e1b9aa1542fc53e099 Signed-off-by: Tomasz Lukawski --- mobile/tct-webuifw-tests01/tests/js/core/util/polar/polar.js | 4 +--- mobile/tct-webuifw-tests02/tests/js/core/util/polar/polar.js | 4 +--- mobile/tct-webuifw-tests03/tests/js/core/util/polar/polar.js | 4 +--- mobile/tct-webuifw-tests04/tests/js/core/util/polar/polar.js | 4 +--- mobile/tct-webuifw-tests05/tests/js/core/util/polar/polar.js | 4 +--- mobile/tct-webuifw-tests06/tests/js/core/util/polar/polar.js | 4 +--- mobile/tct-webuifw-tests07/tests/js/core/util/polar/polar.js | 4 +--- 7 files changed, 7 insertions(+), 21 deletions(-) diff --git a/mobile/tct-webuifw-tests01/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests01/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests01/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests01/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } diff --git a/mobile/tct-webuifw-tests02/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests02/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests02/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests02/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } diff --git a/mobile/tct-webuifw-tests03/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests03/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests03/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests03/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } diff --git a/mobile/tct-webuifw-tests04/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests04/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests04/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests04/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } diff --git a/mobile/tct-webuifw-tests05/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests05/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests05/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests05/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } diff --git a/mobile/tct-webuifw-tests06/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests06/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests06/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests06/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } diff --git a/mobile/tct-webuifw-tests07/tests/js/core/util/polar/polar.js b/mobile/tct-webuifw-tests07/tests/js/core/util/polar/polar.js index 939ab77..7a44e40 100644 --- a/mobile/tct-webuifw-tests07/tests/js/core/util/polar/polar.js +++ b/mobile/tct-webuifw-tests07/tests/js/core/util/polar/polar.js @@ -146,10 +146,8 @@ function polarTests(polar) { if (!window.navigator.userAgent.match("PhantomJS")) { ok(path.classList.contains("ui-animated"), "animated class on path is correct set"); - equal(path.style.transformOrigin, "120px 140px 0px", "style transform origin on path is correct set"); - } else { - equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); } + equal(path.style.transformOrigin, "120px 140px", "style transform origin on path is correct set"); equal(path.style.transform, "rotate(100deg)", "transform on path is correct set"); }); } -- 2.7.4