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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html

Issue 2565343003: DevTools: do not show dynamically-added stylesheets in navigator (Closed)
Patch Set: Created 4 years 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <style>
6 </style>
7 <script>
8 function injectStyleSheet()
9 {
10 var style = document.createElement('style');
11 style.textContent = '* {color: blue; }';
12 document.head.appendChild(style);
13 }
14
15 function test()
16 {
17 Promise.all([
18 UI.inspectorView.showPanel('sources'),
19 InspectorTest.evaluateInPagePromise('injectStyleSheet()')
20 ]).then(onInjected);
21
22 function onInjected()
23 {
24 var sourcesNavigator = new Sources.SourcesNavigatorView();
25 InspectorTest.dumpNavigatorView(sourcesNavigator);
26 InspectorTest.completeTest();
27 }
28 }
29 </script>
30 </head>
31
32 <body onload="runTest()">
33 <p>Verify that inline stylesheets do not appear in navigator.</p>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698