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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-1/add-new-rule-inline-style-csp.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 <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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 InspectorTest.addResult("Selectors matching the (#inspected) nod e: " + InspectorTest.matchingSelectors(matchedStyles, rule)); 72 InspectorTest.addResult("Selectors matching the (#inspected) nod e: " + InspectorTest.matchingSelectors(matchedStyles, rule));
73 73
74 next(); 74 next();
75 } 75 }
76 }, 76 },
77 77
78 function testModifyInlineStyle(next) 78 function testModifyInlineStyle(next)
79 { 79 {
80 var inlineStyle; 80 var inlineStyle;
81 InspectorTest.cssModel.inlineStylesPromise(nodeId).then(stylesCallba ck); 81 InspectorTest.cssModel.inlineStylesPromise(nodeId).then(stylesCallba ck);
82 InspectorTest.cssModel.addEventListener(WebInspector.CSSModel.Events .StyleSheetChanged, onStyleSheetChanged); 82 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleShe etChanged, onStyleSheetChanged);
83 function onStyleSheetChanged(event) 83 function onStyleSheetChanged(event)
84 { 84 {
85 if (event.data && event.data.edit) 85 if (event.data && event.data.edit)
86 inlineStyle.rebase(event.data.edit); 86 inlineStyle.rebase(event.data.edit);
87 } 87 }
88 88
89 function stylesCallback(inlineStyleResult) 89 function stylesCallback(inlineStyleResult)
90 { 90 {
91 if (!inlineStyleResult || !inlineStyleResult.inlineStyle) { 91 if (!inlineStyleResult || !inlineStyleResult.inlineStyle) {
92 InspectorTest.completeTest(); 92 InspectorTest.completeTest();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 <body onload="runTest()"> 126 <body onload="runTest()">
127 <p> 127 <p>
128 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. 128 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.
129 </p> 129 </p>
130 130
131 <div id="inspected">Text</div> 131 <div id="inspected">Text</div>
132 132
133 </body> 133 </body>
134 </html> 134 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698