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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/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: move test 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html b/third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html
new file mode 100644
index 0000000000000000000000000000000000000000..6200e3bf69022ad5fb5f1ef1c1b0d6a022787c2e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html
@@ -0,0 +1,35 @@
+<html>
+<head>
+<script src="../../inspector-test.js"></script>
+<script src="../../elements-test.js"></script>
+<style>
+</style>
+<script>
+function injectStyleSheet()
+{
+ var style = document.createElement('style');
+ style.textContent = '* {color: blue; }';
+ document.head.appendChild(style);
+}
+
+function test()
+{
+ Promise.all([
+ UI.inspectorView.showPanel('sources'),
+ InspectorTest.evaluateInPagePromise('injectStyleSheet()')
+ ]).then(onInjected);
+
+ function onInjected()
+ {
+ var sourcesNavigator = new Sources.SourcesNavigatorView();
+ InspectorTest.dumpNavigatorView(sourcesNavigator);
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+
+<body onload="runTest()">
+<p>Verify that inline stylesheets do not appear in navigator.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698