Changeset 111411 in webkit
- Timestamp:
- Mar 20, 2012 10:56:15 AM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r111409 r111411 1 2012-03-20 Jacob Goldstein <jacobg@adobe.com> 2 3 Convert regions parsing test to use testharness.js 4 https://bugs.webkit.org/show_bug.cgi?id=80709 5 6 Reviewed by Ryosuke Niwa. 7 8 * fast/regions/script-tests/webkit-flow-parsing.js: 9 (testParse): 10 (testComputedStyle): 11 (testNotInherited): 12 (test): 13 * fast/regions/webkit-flow-parsing-expected.txt: 14 * fast/regions/webkit-flow-parsing.html: 15 * resources/testharness.js: Added. 16 (.): 17 * resources/testharnessreport.js: Added. 18 (convertResult): 19 1 20 2012-03-20 Vsevolod Vlasov <vsevik@chromium.org> 2 21 -
trunk/LayoutTests/fast/regions/script-tests/webkit-flow-parsing.js
r109015 r111411 1 description('Test parsing of the CSS webkit-flow-into property.'); 2 3 function test(declaration) { 1 function testParse(declaration) { 4 2 var div = document.createElement("div"); 5 3 div.setAttribute("style", declaration); … … 33 31 } 34 32 35 shouldBeEqualToString('test("-webkit-flow-into: none")', "none"); 36 shouldBeEqualToString('test("-webkit-flow-into: first-flow")', "first-flow");37 shouldBeEqualToString('test("-webkit-flow-into: \'first flow\'")', "");38 shouldBeEqualToString('test("-webkit-flow-into: ;")', "");39 shouldBeEqualToString('test("-webkit-flow-into: 1")', "");40 shouldBeEqualToString('test("-webkit-flow-into: 1.2")', "");41 shouldBeEqualToString('test("-webkit-flow-into: -1")', "");42 shouldBeEqualToString('test("-webkit-flow-into: 12px")', "");33 test(function() {assert_equals(testParse("-webkit-flow-into: none"), "none")}, "Test Parse none"); 34 test(function() {assert_equals(testParse("-webkit-flow-into: first-flow"), "first-flow")}, "Test Parse first-flow"); 35 test(function() {assert_equals(testParse("-webkit-flow-into: \'first flow\'"), "")}, "Test Parse 'first-flow'"); 36 test(function() {assert_equals(testParse("-webkit-flow-into: ;"), "")}, "Test Parse ;"); 37 test(function() {assert_equals(testParse("-webkit-flow-into: 1"), "")}, "Test Parse 1"); 38 test(function() {assert_equals(testParse("-webkit-flow-into: 1.2"), "")}, "Test Parse 1.2"); 39 test(function() {assert_equals(testParse("-webkit-flow-into: -1"), "")}, "Test Parse -1"); 40 test(function() {assert_equals(testParse("-webkit-flow-into: 12px"), "")}, "Test Parse 12px"); 43 41 44 shouldBeEqualToString('testComputedStyle("none")', "none");45 shouldBeEqualToString('testComputedStyle("")', "none");46 shouldBeEqualToString('testComputedStyle("\'first-flow\'")', "none");47 shouldBeEqualToString('testComputedStyle("first-flow")', "first-flow");48 shouldBeEqualToString('testComputedStyle("12px")', "none");42 test(function() {assert_equals(testComputedStyle("none"), "none")}, "Test Computed Style none"); 43 test(function() {assert_equals(testComputedStyle(""), "none")}, "Test Computed Style ''"); 44 test(function() {assert_equals(testComputedStyle("\'first-flow\'"), "none")}, "Test Computed Style 'first-flow'"); 45 test(function() {assert_equals(testComputedStyle("first-flow"), "first-flow")}, "Test Computed Style first-flow"); 46 test(function() {assert_equals(testComputedStyle("12px"), "none")}, "Test Computed Style 12px "); 49 47 50 shouldBeEqualToString('testNotInherited("none", "none")', "none");51 shouldBeEqualToString('testNotInherited("none", "child-flow")', "child-flow");52 shouldBeEqualToString('testNotInherited("parent-flow", "none")', "none");53 shouldBeEqualToString('testNotInherited("parent-flow", "child-flow")', "child-flow");48 test(function() {assert_equals(testNotInherited("none", "none"), "none")}, "Test Non-Inherited none, none"); 49 test(function() {assert_equals(testNotInherited("none", "child-flow"), "child-flow")}, "Test Non-Inherited none, child-flow"); 50 test(function() {assert_equals(testNotInherited("parent-flow", "none"), "none")}, "Test Non-Inherited parent-flow, none"); 51 test(function() {assert_equals(testNotInherited("parent-flow", "child-flow"), "child-flow")}, "Test Non-Inherited parent-flow, child-flow"); -
trunk/LayoutTests/fast/regions/webkit-flow-parsing-expected.txt
r109015 r111411 1 T est parsing of the CSS webkit-flow-into property.1 This test verifies that the webkit-flow-into property is correctly parsed 2 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 3 PASS Test Parse none 4 PASS Test Parse first-flow 5 PASS Test Parse 'first-flow' 6 PASS Test Parse ; 7 PASS Test Parse 1 8 PASS Test Parse 1.2 9 PASS Test Parse -1 10 PASS Test Parse 12px 11 PASS Test Computed Style none 12 PASS Test Computed Style '' 13 PASS Test Computed Style 'first-flow' 14 PASS Test Computed Style first-flow 15 PASS Test Computed Style 12px 16 PASS Test Non-Inherited none, none 17 PASS Test Non-Inherited none, child-flow 18 PASS Test Non-Inherited parent-flow, none 19 PASS Test Non-Inherited parent-flow, child-flow 4 20 5 6 PASS test("-webkit-flow-into: none") is "none"7 PASS test("-webkit-flow-into: first-flow") is "first-flow"8 PASS test("-webkit-flow-into: 'first flow'") is ""9 PASS test("-webkit-flow-into: ;") is ""10 PASS test("-webkit-flow-into: 1") is ""11 PASS test("-webkit-flow-into: 1.2") is ""12 PASS test("-webkit-flow-into: -1") is ""13 PASS test("-webkit-flow-into: 12px") is ""14 PASS testComputedStyle("none") is "none"15 PASS testComputedStyle("") is "none"16 PASS testComputedStyle("'first-flow'") is "none"17 PASS testComputedStyle("first-flow") is "first-flow"18 PASS testComputedStyle("12px") is "none"19 PASS testNotInherited("none", "none") is "none"20 PASS testNotInherited("none", "child-flow") is "child-flow"21 PASS testNotInherited("parent-flow", "none") is "none"22 PASS testNotInherited("parent-flow", "child-flow") is "child-flow"23 PASS successfullyParsed is true24 25 TEST COMPLETE26 -
trunk/LayoutTests/fast/regions/webkit-flow-parsing.html
r97881 r111411 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">1 <!DOCTYPE html> 2 2 <html> 3 <head> 4 <script src="../../fast/js/resources/js-test-pre.js"></script> 5 </head> 6 <body> 7 <script src="script-tests/webkit-flow-parsing.js"></script> 8 <script src="../../fast/js/resources/js-test-post.js"></script> 9 </body> 3 <head> 4 <title>CSS Regions Parsing Test: Parse webkit-flow-into property</title> 5 <link rel="author" title="Jacob Goldstein" href="mailto:jacobg@adobe.com"/> 6 <link rel="help" href="http://www.w3.org/TR/css3-regions/#properties-and-rules"/> 7 <meta name="flags" content=""/> 8 <meta name="assert" content="Value specified for the webkit-flow-into property should be parsed correctly."/> 9 <script src="../../resources/testharness.js"></script> 10 <script src="../../resources/testharnessreport.js"></script> 11 </head> 12 <body> 13 <span>This test verifies that the webkit-flow-into property is correctly parsed</span> 14 <div id="log"></div> 15 <script src="script-tests/webkit-flow-parsing.js"></script> 16 </body> 10 17 </html>
Note: See TracChangeset
for help on using the changeset viewer.