Index: third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-wrap-wrap.html |
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-wrap-wrap.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-wrap-wrap.html |
index 99459b828719eb9fd926df8406bb828a2aaff1bd..df9d28bfaac1fcd424cf3591363056dccc7d2090 100644 |
--- a/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-wrap-wrap.html |
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-wrap-wrap.html |
@@ -2,21 +2,21 @@ |
<title>flexbox | computed style | flex-wrap: wrap</title> |
<link rel="author" href="http://opera.com" title="Opera Software"> |
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap"> |
-<link rel="match" href="ref-pass-body.html"> |
+<script src="../../../../resources/testharness.js"></script> |
+<script src="../../../../resources/testharnessreport.js"></script> |
<meta name="flags" content="dom"> |
<style> |
body { |
color: red; |
flex-wrap: wrap; |
} |
-.PASS {color: black;} |
</style> |
-<h1>FAIL, enable javascript</h1> |
+<div id="log"></div> |
<script> |
+test(function() { |
var body = document.body; |
- var passed = |
- getComputedStyle(body).getPropertyValue("flex-wrap") == |
- "wrap"; |
- body.textContent = body.className = passed ? "PASS" : "FAIL"; |
+ assert_equals(getComputedStyle(body).getPropertyValue("flex-wrap"), |
+ "wrap"); |
+}); |
</script> |