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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-inline-element-style-changes-should-not-force-style-recalc.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../../http/tests/inspector/timeline-test.js"></script>
5 5
6 <script> 6 <script>
7 7
8 function performActions() 8 function performActions()
9 { 9 {
10 var testDiv = document.querySelector("#testDiv"); 10 var testDiv = document.querySelector("#testDiv");
11 for (var i = 0; i < 20; ++i) 11 for (var i = 0; i < 20; ++i)
12 testDiv.style.visibility = ""; 12 testDiv.style.visibility = "";
13 } 13 }
14 14
15 function test() 15 function test()
16 { 16 {
17 WebInspector.context.setFlavor(WebInspector.TimelinePanel, WebInspector.pane ls.timeline); 17 UI.context.setFlavor(Timeline.TimelinePanel, UI.panels.timeline);
18 InspectorTest.performActionsAndPrint("performActions()", "RecalculateStyles" ); 18 InspectorTest.performActionsAndPrint("performActions()", "RecalculateStyles" );
19 } 19 }
20 20
21 </script> 21 </script>
22 </head> 22 </head>
23 23
24 <body onload="runTest()"> 24 <body onload="runTest()">
25 <p>Tests that inspector doesn't force styles recalc on operations with inline el ement styles that result in no changes.</p> 25 <p>Tests that inspector doesn't force styles recalc on operations with inline el ement styles that result in no changes.</p>
26 <div id="testDiv" style="color: green">testDiv</div> 26 <div id="testDiv" style="color: green">testDiv</div>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698