diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-02-06 11:06:12 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-02-06 22:38:29 +0100 |
commit | 296fa2512ba2fbc8f1d6b7e82e30ad3b5d2a9a20 (patch) | |
tree | 95ac50cd05fa8a22d1c0fa12016ee0d2012a165c /tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht | |
parent | fb4f421c8b9cbf80a86c9c5eb88395d7008b27a1 (diff) | |
download | servo-296fa2512ba2fbc8f1d6b7e82e30ad3b5d2a9a20.tar.gz servo-296fa2512ba2fbc8f1d6b7e82e30ad3b5d2a9a20.zip |
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
Diffstat (limited to 'tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht')
-rw-r--r-- | tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht b/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht index f5cdcabbed3..716bb04e29d 100644 --- a/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht +++ b/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/2d-rotate-js.xht @@ -3,7 +3,9 @@ <title>JS test: Rotate via javascript must show the correct computed rotation</title> <link href="http://mrkn.co/axegs" rel="author" title="Rick Hurst" /> <link href="http://www.w3.org/TR/css-transforms-1/#transform-property" rel="help" /> - <meta content="css3, rotate, svg" name="flags" /> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <meta content="svg" name="flags" /> <meta content="Asserting that you can rotate an element with JS and it show up in CSS computed values not as a matrix but as the rotation" name="assert" /> <style> #box{ @@ -19,27 +21,13 @@ <h1>Rotate via JS</h1> <div id="log"></div> <div id="box"></div> - <script src="/resources/testharness.js"></script> - <script src="/resources/testharnessreport.js"></script> <script> - (function(){ - var box = document.getElementById("box"), - assertion = "", - expectation = "rotate(30deg)", - should_string = "this should make a small green square rotated 30 degrees, and the browser should return the rotation as 30 degrees as the computed value NOT a matrix", - extra_properties = null, - computed_angle = 0, - a_1 = ""; - a_2 = "", - my_value = "", - test_function = {}; - box.style.Transform = "rotate(30deg)"; - assertion = window.getComputedStyle(box).getPropertyValue("transform"); - test_function = function(){ - assert_equals(assertion, expectation); - } - test(test_function, should_string); - })(); + test(function() { + var box = document.getElementById("box"); + box.style.transform = "rotate(30deg)"; + assert_equals(window.getComputedStyle(box).getPropertyValue("transform"), + "rotate(30deg)"); + }); </script> |