Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/flex-flow-initial.html

Issue 2130543003: Convert some flexbox tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/css3/flexbox/flex-flow-initial.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/flex-flow-initial.html b/third_party/WebKit/LayoutTests/css3/flexbox/flex-flow-initial.html
index 35c5978779f6b9af593bb4dbaef737746a3ca212..87f9b101ba8288a09c69212d51a7538fcb39ef2b 100644
--- a/third_party/WebKit/LayoutTests/css3/flexbox/flex-flow-initial.html
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/flex-flow-initial.html
@@ -13,15 +13,19 @@
flex-direction: initial;
}
</style>
+<p>Tests that 'initial' is handled correctly for the flex-flow shorthand.</p>
+<div id="log"></div>
<span id="test1"></span>
<span id="test2"></span>
-<script src="../../resources/js-test.js"></script>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<script>
-description("Tests that 'initial' is handled correctly for the flex-flow shorthand.");
value1 = window.getComputedStyle(test1).flexDirection;
value2 = window.getComputedStyle(test2).flexDirection;
-shouldBeEqualToString('window.getComputedStyle(test1).flexDirection', 'row');
-shouldBeEqualToString('window.getComputedStyle(test2).flexDirection', 'row');
+test(function() {
+assert_equals(window.getComputedStyle(test1).flexDirection, "row");
+assert_equals(window.getComputedStyle(test2).flexDirection, "row");
+}, "initial value is correct");
if (window.testRunner)
testRunner.dumpAsText();
</script>

Powered by Google App Engine
This is Rietveld 408576698