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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes.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 3
4 <link rel="stylesheet" href="../styles/resources/keyframes.css"> 4 <link rel="stylesheet" href="../styles/resources/keyframes.css">
5 5
6 <script src="../../../http/tests/inspector/inspector-test.js"></script> 6 <script src="../../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../../http/tests/inspector/elements-test.js"></script> 7 <script src="../../../http/tests/inspector/elements-test.js"></script>
8 <style> 8 <style>
9 @keyframes animName { 9 @keyframes animName {
10 from, 20% { 10 from, 20% {
11 margin-left: 200px; 11 margin-left: 200px;
12 color: red; 12 color: red;
13 } 13 }
14 to { 14 to {
15 margin-left: 500px; 15 margin-left: 500px;
16 } 16 }
17 } 17 }
18 </style> 18 </style>
19 <script> 19 <script>
20 function test() 20 function test()
21 { 21 {
22 InspectorTest.selectNodeAndWaitForStyles("element", step1); 22 InspectorTest.selectNodeAndWaitForStyles("element", step1);
23 23
24 function step1() 24 function step1()
25 { 25 {
26 InspectorTest.addResult("=== Before key modification ==="); 26 InspectorTest.addResult("=== Before key modification ===");
27 InspectorTest.dumpSelectedElementStyles(true); 27 InspectorTest.dumpSelectedElementStyles(true);
28 var section = WebInspector.panels.elements._stylesWidget._sectionBlocks[ 1].sections[1]; 28 var section = UI.panels.elements._stylesWidget._sectionBlocks[1].section s[1];
29 section.startEditingSelector(); 29 section.startEditingSelector();
30 section._selectorElement.textContent = "1%"; 30 section._selectorElement.textContent = "1%";
31 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er")); 31 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er"));
32 InspectorTest.waitForSelectorCommitted(step2); 32 InspectorTest.waitForSelectorCommitted(step2);
33 } 33 }
34 34
35 function step2() 35 function step2()
36 { 36 {
37 InspectorTest.addResult("=== After key modification ==="); 37 InspectorTest.addResult("=== After key modification ===");
38 InspectorTest.dumpSelectedElementStyles(true); 38 InspectorTest.dumpSelectedElementStyles(true);
(...skipping 21 matching lines...) Expand all
60 </head> 60 </head>
61 61
62 <body onload="runTest()"> 62 <body onload="runTest()">
63 <div id="element"></div> 63 <div id="element"></div>
64 <p> 64 <p>
65 Tests that keyframes are shown in styles pane. 65 Tests that keyframes are shown in styles pane.
66 </p> 66 </p>
67 67
68 </body> 68 </body>
69 </html> 69 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698