blob: f4412de8634f28f29c8ddfc2d04d11d0b67ec4e6 [file] [log] [blame]
<!doctype html>
<html>
<!--
Test for https://bugs.webkit.org/show_bug.cgi?id=66642 ([CSSRegions][CSSOM] Implement NamedFlow interface).
Test that getting a WebKitNamedFlow for a flow that was removed returns a valid non-null object.
On success, you should see a PASS below.
-->
<head>
<script src="resources/helper.js"></script>
<style>
.pass {
font-weight: bold;
color: green;
}
.fail {
font-weight: bold;
color: red;
}
.flow {
-webkit-flow-into: flow;
}
.noFlow {
-webkit-flow-into: none;
}
</style>
</head>
<body onload="test()">
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=66642">66642: [CSSRegions]Implement NamedFlow interface</a></p>
<p>Getting a WebKitNamedFlow object for a flow that was removed returns a non-null object.</p>
<p>On success, you should see PASS below.</p>
<div id="article" class="flow"></div>
<div id="result" class="fail">FAIL</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
// Get the named flow object before removing the flow thread.
var namedFlow = getFlowByName("flow");
var namedFlow2;
function test()
{
namedFlow2 = getFlowByName("flow");
if (namedFlow && !namedFlow2) {
document.getElementById("result").innerText = "PASS";
document.getElementById("result").className = "pass";
}
}
document.getElementById("article").className = "noFlow";
</script>
</body>
</html>