Index: third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-basis-0percent.html |
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-basis-0percent.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-basis-0percent.html |
index 795de0965e2f994392d8743c29167e982a3bc310..28d13489ed1aa216d791902df7e5561f9a1ce2d9 100644 |
--- a/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-basis-0percent.html |
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/getcomputedstyle/flexbox_computedstyle_flex-basis-0percent.html |
@@ -2,21 +2,21 @@ |
<title>flexbox | computed style | flex-basis: 0%</title> |
<link rel="author" href="http://opera.com" title="Opera Software"> |
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property"> |
-<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-basis: 0%; |
} |
-.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-basis") == |
- "0px"; |
- body.textContent = body.className = passed ? "PASS" : "FAIL"; |
+ assert_equals(getComputedStyle(body).getPropertyValue("flex-basis"), |
+ "0px"); |
+}); |
</script> |