diff options
Diffstat (limited to 'tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-direction-row-reverse.htm')
-rw-r--r-- | tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-direction-row-reverse.htm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-direction-row-reverse.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-direction-row-reverse.htm index dd8f1b9945b..8270734ecf0 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-direction-row-reverse.htm +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-direction-row-reverse.htm @@ -2,22 +2,22 @@ <html><head><title>flexbox | computed style | flex-direction: row-reverse</title> <link href="http://opera.com" rel="author" title="Opera Software"> <link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help"> -<link href="reference/ref-pass-body.htm" rel="match"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> <meta content="dom" name="flags"> <style> body { color: red; flex-direction: row-reverse; } -.PASS {color: black;} </style> -</head><body><h1>FAIL, enable javascript</h1> +</head><body><div id="log"></div> <script> +test(function() { var body = document.body; - var passed = - getComputedStyle(body).getPropertyValue("flex-direction") == - "row-reverse"; - body.textContent = body.className = passed ? "PASS" : "FAIL"; + assert_equals(getComputedStyle(body).getPropertyValue("flex-direction"), + "row-reverse"); +}); </script> </body></html>
\ No newline at end of file |