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

Side by Side Diff: LayoutTests/inspector/elements/styles-1/add-new-rule-inline-style-csp.html

Issue 1204393002: DevTools: [CSS] promisify CSSStyleModel fetching methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 <meta http-equiv="Content-Security-Policy" content="style-src https://*:443 'uns afe-eval'"> 3 <meta http-equiv="Content-Security-Policy" content="style-src https://*:443 'uns afe-eval'">
4 <script src="../../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../../http/tests/inspector/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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 function failureCallback() 65 function failureCallback()
66 { 66 {
67 InspectorTest.addResult("[!] Failed to change selector"); 67 InspectorTest.addResult("[!] Failed to change selector");
68 InspectorTest.completeTest(); 68 InspectorTest.completeTest();
69 } 69 }
70 }, 70 },
71 71
72 function testModifyInlineStyle(next) 72 function testModifyInlineStyle(next)
73 { 73 {
74 InspectorTest.cssModel.getInlineStylesAsync(nodeId, stylesCallback); 74 InspectorTest.cssModel.inlineStylesPromise(nodeId).then(stylesCallba ck);
75 75
76 function stylesCallback(inlineStyleResult) 76 function stylesCallback(inlineStyleResult)
77 { 77 {
78 if (!inlineStyleResult || !inlineStyleResult.inlineStyle) { 78 if (!inlineStyleResult || !inlineStyleResult.inlineStyle) {
79 InspectorTest.completeTest(); 79 InspectorTest.completeTest();
80 return; 80 return;
81 } 81 }
82 inlineStyleResult.inlineStyle.appendProperty("font-size", "14px" , appendCallback); 82 inlineStyleResult.inlineStyle.appendProperty("font-size", "14px" , appendCallback);
83 } 83 }
84 84
(...skipping 26 matching lines...) Expand all
111 111
112 <body onload="runTest()"> 112 <body onload="runTest()">
113 <p> 113 <p>
114 Tests that adding a new rule does not crash the renderer and modifying an inline style does not report errors when forbidden by Content-Security-Policy. 114 Tests that adding a new rule does not crash the renderer and modifying an inline style does not report errors when forbidden by Content-Security-Policy.
115 </p> 115 </p>
116 116
117 <div id="inspected">Text</div> 117 <div id="inspected">Text</div>
118 118
119 </body> 119 </body>
120 </html> 120 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698