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

Side by Side Diff: LayoutTests/inspector/layers/no-overlay-layers.html

Issue 173763002: DevTools: hide page overlay layers in LayerTreeAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed stray watchdog from test 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4 .layer {
5 -webkit-transform: translateZ(10px);
6 opacity: 0.8;
7 }
8 </style>
9 <script src="../../http/tests/inspector/inspector-test.js"></script>
10 <script src="../../http/tests/inspector/layers-test.js"></script>
11 <script>
12 window.quietUntilDone = true;
13
14 function updateGeometry()
15 {
16 document.getElementById("a").style.width = "300px";
17 }
18
19 function test()
20 {
21 var layersBeforeHighlight = [];
22
23 InspectorTest.requestLayers(step1);
24
25 function step1()
26 {
27 // Assure layer objects are not re-created during updates.
28 InspectorTest._layerTreeModel.forEachLayer(function(layer) { layersBefor eHighlight.push(layer.id()); });
29 DOMAgent.highlightRect(0, 0, 200, 200, {r:255, g:0, b:0});
30 InspectorTest.evaluateAndRunWhenTreeChanges("requestAnimationFrame(updat eGeometry)", step2);
31 }
32
33 function step2()
34 {
35 var layersAfterHighlight = [];
36 InspectorTest._layerTreeModel.forEachLayer(function(layer) { layersAfter Highlight.push(layer.id()); });
37 layersBeforeHighlight.sort();
38 layersAfterHighlight.sort();
39 InspectorTest.assertEquals(JSON.stringify(layersBeforeHighlight), JSON.s tringify(layersAfterHighlight));
40 InspectorTest.addResult("DONE");
41 InspectorTest.completeTest();
42 }
43 }
44
45 </script>
46 </head>
47 <body onload="runTest()">
48 <div id="a" style="width: 200px; height: 200px" class="layer">
49 </div>
50 </body>
51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698