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

Side by Side Diff: LayoutTests/inspector/elements/styles/add-new-rule-invalid-selector.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 <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 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 InspectorTest.runTestSuite([ 9 InspectorTest.runTestSuite([
10 function init(next) 10 function init(next)
11 { 11 {
12 WebInspector.inspectorView.showPanel("elements"); 12 WebInspector.inspectorView.showPanel("elements");
13 InspectorTest.selectNodeAndWaitForStyles("inspected", next); 13 InspectorTest.selectNodeAndWaitForStyles("inspected", next);
14 }, 14 },
15 15
16 function keyframesRuleSelector(next) 16 function keyframesRuleSelector(next)
17 { 17 {
18 // Click "Add new rule". 18 // Click "Add new rule".
19 document.getElementById("add-style-button-test-id").click(); 19 document.getElementById("add-style-button-test-id").click();
20 var section = WebInspector.panels.elements.sidebarPanes.styles.secti ons[0][2]; 20 var section = WebInspector.inspectorView.panel("elements").sidebarPa nes.styles.sections[0][2];
21 section._selectorElement.textContent = "@-webkit-keyframes shake"; 21 section._selectorElement.textContent = "@-webkit-keyframes shake";
22 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent( "Enter")); 22 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent( "Enter"));
23 InspectorTest.runAfterPendingDispatches(callback); 23 InspectorTest.runAfterPendingDispatches(callback);
24 24
25 function callback() 25 function callback()
26 { 26 {
27 InspectorTest.dumpSelectedElementStyles(true, false, true); 27 InspectorTest.dumpSelectedElementStyles(true, false, true);
28 next(); 28 next();
29 } 29 }
30 } 30 }
31 ]); 31 ]);
32 } 32 }
33 33
34 </script> 34 </script>
35 </head> 35 </head>
36 36
37 <body onload="runTest()"> 37 <body onload="runTest()">
38 <p> 38 <p>
39 Tests that adding a new rule with invalid selector works as expected. 39 Tests that adding a new rule with invalid selector works as expected.
40 </p> 40 </p>
41 41
42 <div id="inspected">Text</div> 42 <div id="inspected">Text</div>
43 43
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698