| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 #content { -webkit-flow-into: flow; } | 5 #content { -webkit-flow-into: flow; } |
| 6 #container { -webkit-flow-from: flow; width: 100px; height: 100px;} | 6 #container { -webkit-flow-from: flow; width: 100px; height: 100px;} |
| 7 </style> | 7 </style> |
| 8 </head> | 8 </head> |
| 9 <script src="../../fast/js/resources/js-test-pre.js"></script> | 9 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 10 <body> | 10 <body> |
| 11 <div id="content"></div> | 11 <div id="content"></div> |
| 12 <div id="container"></div> | 12 <div id="container"></div> |
| 13 <script> | 13 <script> |
| 14 if (window.testRunner) | 14 if (window.testRunner) |
| 15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
| 16 var namedFlowCollection = document.webkitGetNamedFlows(); | 16 var namedFlowCollection = document.webkitGetNamedFlows(); |
| 17 document.body.removeChild(document.getElementById("content")); | 17 document.body.removeChild(document.getElementById("content")); |
| 18 document.body.removeChild(document.getElementById("container")); | 18 document.body.removeChild(document.getElementById("container")); |
| 19 | 19 |
| 20 // Force a re-layout event, which forces the deletion of the underlying
NamedFlow. | 20 // Force a re-layout event, which forces the deletion of the underlying
NamedFlow. |
| 21 document.body.offsetTop; | 21 document.body.offsetTop; |
| 22 | 22 |
| 23 var namedFlow = namedFlowCollection.flow; | 23 var namedFlow = namedFlowCollection.flow; |
| 24 if (namedFlow.name == "flow") | 24 if (namedFlow.name == "flow") |
| 25 document.body.innerText = "PASS"; | 25 document.body.innerText = "PASS"; |
| 26 else | 26 else |
| 27 document.body.innerText = "FAIL"; | 27 document.body.innerText = "FAIL"; |
| 28 </script> | 28 </script> |
| 29 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 30 </body> | 29 </body> |
| 31 </html> | 30 </html> |
| OLD | NEW |