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

Side by Side Diff: LayoutTests/fast/regions/cssom/webkit-named-flow-event-crash.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../../resources/js-test.js"></script>
6 <style>
7 body, html {
8 width: 500px;
9 height: 500px;
10 }
11 #content {
12 width: 100%;
13 height: 100%;
14 -webkit-flow-into: flow;
15 }
16 #region {
17 width: 100%;
18 height: 100%;
19 -webkit-flow-from: flow;
20 }
21 </style>
22 </head>
23 <body>
24 <div id="content">
25 Hello crash!
26 </div>
27 <div id="region">
28 </div>
29 <script>
30 description("The test passes if there is no crash or assert.");
31 if (window.testRunner) {
32 testRunner.dumpAsText();
33 testRunner.waitUntilDone();
34 }
35
36 function dummyHandler (evt) {
37 evt.target.removeEventListener("webkitregionoversetchange", dummyHan dler);
38 debug("This line should not appear!");
39 }
40
41 setTimeout(function() {
42 var namedFlows = document.webkitGetNamedFlows();
43 namedFlows["flow"].addEventListener("webkitregionoversetchange", dum myHandler);
44 var content = document.getElementById("content");
45 var region = document.getElementById("region");
46 content.style.height = "600px";
47
48 // Schedule a regionoversetchange event.
49 document.body.offsetTop;
50
51 // Transition the flow to the "NULL" state.
52 document.body.removeChild(content);
53 document.body.removeChild(region);
54
55 setTimeout(function() {
56 if (window.testRunner)
57 testRunner.notifyDone();
58 },0)
59 }, 0);
60 </script>
61 </body>
62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698