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

Side by Side Diff: LayoutTests/fast/layers/crash-no-scrollable-area-scrollbars.html

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .c11:nth-child(2n) { opacity: 0.1; } 3 .c11:nth-child(2n) { opacity: 0.1; }
4 .c11:nth-last-child(odd) { overflow: scroll; } 4 .c11:nth-last-child(odd) { overflow: scroll; }
5 </style> 5 </style>
6 <div>This test checks that RenderLayer doesn't crash because it is missing a Scr ollableArea.</div> 6 <div>This test checks that Layer doesn't crash because it is missing a Scrollabl eArea.</div>
7 <div>This test has passed if it doesn't crash.</div> 7 <div>This test has passed if it doesn't crash.</div>
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 11
12 function boom() { 12 function boom() {
13 var preDiv = document.createElement('div'); 13 var preDiv = document.createElement('div');
14 document.documentElement.appendChild(preDiv); 14 document.documentElement.appendChild(preDiv);
15 var selectDiv = document.createElement('div'); 15 var selectDiv = document.createElement('div');
16 selectDiv.setAttribute('multiple', 'multiple'); 16 selectDiv.setAttribute('multiple', 'multiple');
17 selectDiv.setAttribute('class', 'c11'); 17 selectDiv.setAttribute('class', 'c11');
18 document.documentElement.appendChild(selectDiv); 18 document.documentElement.appendChild(selectDiv);
19 var div = document.createElement('div'); 19 var div = document.createElement('div');
20 document.documentElement.appendChild(div); 20 document.documentElement.appendChild(div);
21 var div3 = document.createElement('div'); 21 var div3 = document.createElement('div');
22 document.documentElement.appendChild(div3); 22 document.documentElement.appendChild(div3);
23 document.body.offsetTop; 23 document.body.offsetTop;
24 var div2 = document.createElement('div'); 24 var div2 = document.createElement('div');
25 div2.appendChild(div); 25 div2.appendChild(div);
26 } 26 }
27 window.onload = boom; 27 window.onload = boom;
28 </script> 28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698