aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm')
-rw-r--r--tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm
index b82d31e47f0..83b6730ed42 100644
--- a/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm
+++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-column-reverse.htm
@@ -3,24 +3,24 @@
<link href="http://opera.com" rel="author" title="Opera Software">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help">
<link href="http://www.w3.org/TR/css-flexbox-1/#valdef-flex-direction-column-reverse" 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-flow: column-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") ==
- "column-reverse" &&
- getComputedStyle(body).getPropertyValue("flex-wrap") ==
- "nowrap");
- body.textContent = body.className = passed ? "PASS" : "FAIL";
+ assert_equals(getComputedStyle(body).getPropertyValue("flex-direction"),
+ "column-reverse");
+ assert_equals(getComputedStyle(body).getPropertyValue("flex-wrap"),
+ "nowrap");
+});
</script>
</body></html> \ No newline at end of file