| Index: third_party/WebKit/LayoutTests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html b/third_party/WebKit/LayoutTests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..709b950f1608cc29108e4eeee126117bcff117e8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/elements/styles/styles-do-not-add-inline-stylesheets-in-navigator.html
|
| @@ -0,0 +1,35 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../../http/tests/inspector/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>
|
|
|