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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/inline-style-title.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/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <style id="inline-style"> 5 <style id="inline-style">
6 div { color: red } 6 div { color: red }
7 </style> 7 </style>
8 <script> 8 <script>
9 9
10 function updateStyleText() 10 function updateStyleText()
11 { 11 {
12 document.querySelector("#inline-style").textContent = "span { border: 1px so lid black }"; 12 document.querySelector("#inline-style").textContent = "span { border: 1px so lid black }";
13 } 13 }
14 14
15 function test() 15 function test()
16 { 16 {
17 // Save time on style updates. 17 // Save time on style updates.
18 WebInspector.StylesSidebarPane.prototype.update = function() {}; 18 Elements.StylesSidebarPane.prototype.update = function() {};
19 WebInspector.MetricsSidebarPane.prototype.update = function() {}; 19 Elements.MetricsSidebarPane.prototype.update = function() {};
20 20
21 InspectorTest.nodeWithId("inline-style", onInlineStyleQueried); 21 InspectorTest.nodeWithId("inline-style", onInlineStyleQueried);
22 22
23 var treeOutline = InspectorTest.firstElementsTreeOutline(); 23 var treeOutline = InspectorTest.firstElementsTreeOutline();
24 var treeElement; 24 var treeElement;
25 25
26 function onInlineStyleQueried(node) 26 function onInlineStyleQueried(node)
27 { 27 {
28 if (!node) { 28 if (!node) {
29 InspectorTest.addResult("Didn't find node with given ID"); 29 InspectorTest.addResult("Didn't find node with given ID");
(...skipping 18 matching lines...) Expand all
48 </script> 48 </script>
49 </head> 49 </head>
50 50
51 <body onload="runTest()"> 51 <body onload="runTest()">
52 <p> 52 <p>
53 Verifies that external change of inline style element updates its title. 53 Verifies that external change of inline style element updates its title.
54 </p> 54 </p>
55 </div> 55 </div>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698