OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <!-- | |
4 Test for https://bugs.webkit.org/show_bug.cgi?id=66642 ([CSSRegions][CSSOM]
Implement NamedFlow interface). | |
5 Modify the flow name for an existing flow thread. | |
6 Getting the webkit flow name for the previous flow returns a valid object. | |
7 Getting the webkit flow name for the new flow returns a valid object. | |
8 On success, you should see a PASS below. | |
9 --> | |
10 <head> | |
11 <script src="../resources/helper.js"></script> | |
12 <style> | |
13 .pass { | |
14 font-weight: bold; | |
15 color: green; | |
16 } | |
17 | |
18 .fail { | |
19 font-weight: bold; | |
20 color: red; | |
21 } | |
22 | |
23 .flow { | |
24 -webkit-flow-into: flow; | |
25 } | |
26 | |
27 .flow2 { | |
28 -webkit-flow-into: flow2; | |
29 } | |
30 | |
31 .noFlow { | |
32 -webkit-flow-into: none; | |
33 } | |
34 </style> | |
35 </head> | |
36 <body onload="test()"> | |
37 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=66642">6664
2: [CSSRegions]Implement NamedFlow interface</a></p> | |
38 <p>Getting the webkit flow name for the previous flow should return a no
n-null object.</p> | |
39 <p>Getting the webkit flow name for the new flow should return a non-nul
l object.</p> | |
40 <p>On success, you should see PASS below.</p> | |
41 <div id="article" class="flow"></div> | |
42 <div id="result" class="fail">FAIL</div> | |
43 <script> | |
44 if (window.testRunner) | |
45 testRunner.dumpAsText(); | |
46 | |
47 function test() | |
48 { | |
49 var namedFlow = getFlowByName("flow"); | |
50 var namedFlow2 = getFlowByName("flow2"); | |
51 if (!namedFlow && namedFlow2) { | |
52 document.getElementById("result").innerText = "PASS"; | |
53 document.getElementById("result").className = "pass"; | |
54 } | |
55 } | |
56 | |
57 document.getElementById("article").className = "flow2"; | |
58 </script> | |
59 </body> | |
60 </html> | |
OLD | NEW |