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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #test1 { 3 #test1 {
4 flex-flow: column; 4 flex-flow: column;
5 } 5 }
6 #test1 { 6 #test1 {
7 flex-flow: initial; 7 flex-flow: initial;
8 } 8 }
9 #test2 { 9 #test2 {
10 flex-direction: column; 10 flex-direction: column;
11 } 11 }
12 #test2 { 12 #test2 {
13 flex-direction: initial; 13 flex-direction: initial;
14 } 14 }
15 </style> 15 </style>
16 <p>Tests that 'initial' is handled correctly for the flex-flow shorthand.</p>
17 <div id="log"></div>
16 <span id="test1"></span> 18 <span id="test1"></span>
17 <span id="test2"></span> 19 <span id="test2"></span>
18 <script src="../../resources/js-test.js"></script> 20 <script src="../../resources/testharness.js"></script>
21 <script src="../../resources/testharnessreport.js"></script>
19 <script> 22 <script>
20 description("Tests that 'initial' is handled correctly for the flex-flow shortha nd.");
21 value1 = window.getComputedStyle(test1).flexDirection; 23 value1 = window.getComputedStyle(test1).flexDirection;
22 value2 = window.getComputedStyle(test2).flexDirection; 24 value2 = window.getComputedStyle(test2).flexDirection;
23 shouldBeEqualToString('window.getComputedStyle(test1).flexDirection', 'row'); 25 test(function() {
24 shouldBeEqualToString('window.getComputedStyle(test2).flexDirection', 'row'); 26 assert_equals(window.getComputedStyle(test1).flexDirection, "row");
27 assert_equals(window.getComputedStyle(test2).flexDirection, "row");
28 }, "initial value is correct");
25 if (window.testRunner) 29 if (window.testRunner)
26 testRunner.dumpAsText(); 30 testRunner.dumpAsText();
27 </script> 31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698