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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/modify-cross-domain-rule.html

Issue 1577723002: Devtools: Add editable keyframes to the styles sidebar pane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 <link rel="stylesheet" href="http://localhost:8000/inspector/elements/styles/mod ify-cross-domain-rule.css"> 3 <link rel="stylesheet" href="http://localhost:8000/inspector/elements/styles/mod ify-cross-domain-rule.css">
4 <script src="inspector-test.js"></script> 4 <script src="inspector-test.js"></script>
5 <script src="elements-test.js"></script> 5 <script src="elements-test.js"></script>
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 var nodeId; 10 var nodeId;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 rule.style.appendProperty("width", "100%", callback); 60 rule.style.appendProperty("width", "100%", callback);
61 function callback(success) 61 function callback(success)
62 { 62 {
63 InspectorTest.addResult("=== Rule modified ==="); 63 InspectorTest.addResult("=== Rule modified ===");
64 if (!success) { 64 if (!success) {
65 InspectorTest.addResult("[!] No valid rule style received"); 65 InspectorTest.addResult("[!] No valid rule style received");
66 InspectorTest.completeTest(); 66 InspectorTest.completeTest();
67 } else { 67 } else {
68 dumpProperties(rule.style); 68 dumpProperties(rule.style);
69 rule.setSelectorText(nodeId, "body", successCallback); 69 rule.setSelectorText(nodeId, "body").then(successCallback);
70 } 70 }
71 } 71 }
72 72
73 function successCallback(success) 73 function successCallback(success)
74 { 74 {
75 if (!success) { 75 if (!success) {
76 InspectorTest.addResult("[!] Failed to change selector"); 76 InspectorTest.addResult("[!] Failed to change selector");
77 InspectorTest.completeTest(); 77 InspectorTest.completeTest();
78 return; 78 return;
79 } 79 }
(...skipping 19 matching lines...) Expand all
99 99
100 <body onload="runTest()"> 100 <body onload="runTest()">
101 <p> 101 <p>
102 Tests that modifying a rule in a stylesheet loaded from a different domain does not crash the renderer. 102 Tests that modifying a rule in a stylesheet loaded from a different domain does not crash the renderer.
103 </p> 103 </p>
104 104
105 <div id="inspected">Text</div> 105 <div id="inspected">Text</div>
106 106
107 </body> 107 </body>
108 </html> 108 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698