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

Side by Side Diff: LayoutTests/inspector/elements/styles-2/lazy-computed-style.html

Issue 1285183006: DevTools: WI.Throttler goes promisified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cc
Patch Set: remove dependent patchset Created 5 years, 4 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 4
5 #inspected { 5 #inspected {
6 background-color: green; 6 background-color: green;
7 font-family: Times; 7 font-family: Times;
8 } 8 }
9 9
10 #inspected { 10 #inspected {
(...skipping 11 matching lines...) Expand all
22 <script> 22 <script>
23 23
24 function test() 24 function test()
25 { 25 {
26 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); 26 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
27 27
28 function step1() 28 function step1()
29 { 29 {
30 InspectorTest.addResult("==== All styles (should be no computed) ===="); 30 InspectorTest.addResult("==== All styles (should be no computed) ====");
31 InspectorTest.dumpSelectedElementStyles(false, false); 31 InspectorTest.dumpSelectedElementStyles(false, false);
32 InspectorTest.computedStyleWidget().doUpdate(step2); 32 InspectorTest.computedStyleWidget().doUpdate().then(step2);
33 } 33 }
34 34
35 function step2() 35 function step2()
36 { 36 {
37 InspectorTest.addResult("==== All styles (computed should be there) ==== "); 37 InspectorTest.addResult("==== All styles (computed should be there) ==== ");
38 InspectorTest.dumpSelectedElementStyles(false, false); 38 InspectorTest.dumpSelectedElementStyles(false, false);
39 InspectorTest.completeTest(); 39 InspectorTest.completeTest();
40 } 40 }
41 } 41 }
42 </script> 42 </script>
43 </head> 43 </head>
44 44
45 <body onload="runTest()"> 45 <body onload="runTest()">
46 <p> 46 <p>
47 Tests that computed styles expand and allow tracing to style rules. 47 Tests that computed styles expand and allow tracing to style rules.
48 </p> 48 </p>
49 49
50 <div id="inspected"> 50 <div id="inspected">
51 </div> 51 </div>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/styles-1/color-aware-property-value-edit.html ('k') | LayoutTests/inspector/throttler.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698