Chromium Code Reviews| Index: LayoutTests/inspector/elements/styles/inject-stylesheet.html |
| diff --git a/LayoutTests/inspector/elements/styles/inject-stylesheet.html b/LayoutTests/inspector/elements/styles/inject-stylesheet.html |
| deleted file mode 100644 |
| index a45ab6c1b7fb72da378b594583929865e544744d..0000000000000000000000000000000000000000 |
| --- a/LayoutTests/inspector/elements/styles/inject-stylesheet.html |
| +++ /dev/null |
| @@ -1,65 +0,0 @@ |
| -<html> |
| -<head> |
| - |
| -<style type="text/css" media="screen"> |
| - #main { background:blue; } |
| -</style> |
| - |
| -<script src="../../../http/tests/inspector/inspector-test.js"></script> |
| -<script src="../../../http/tests/inspector/elements-test.js"></script> |
| -<script> |
| - |
| -function injectStyleSheet() |
| -{ |
| - var styleSheet = "#main { color: red; -webkit-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAiElEQVR42r2RsQrDMAxEBRdl8SDcX8lQPGg1GBI6lvz/h7QyRRXV0qUULwfvwZ1tenw5PxToRPWMC52eA9+WDnlh3HFQ/xBQl86NFYJqeGflkiogrOvVlIFhqURFVho3x1moGAa3deMs+LS30CAhBN5nNxeT5hbJ1zwmji2k+aF6NENIPf/hs54f0sZFUVAMigAAAABJRU5ErkJggg==) } #iframeBody { background: red }"; |
| - if (window.testRunner) |
| - window.testRunner.injectStyleSheet(styleSheet, true); |
| -} |
| - |
| -function loadIframe() |
| -{ |
| - var iframe = document.createElement("iframe"); |
| - iframe.src = "resources/inject-stylesheet-iframe-data.html"; |
|
pfeldman
2015/04/02 05:34:12
This resource should also be deleted.
dcheng
2015/04/02 05:39:12
Oops, good catch. Done.
|
| - document.getElementById("main").appendChild(iframe); |
| -} |
| - |
| -function test() |
| -{ |
| - InspectorTest.evaluateInPage("injectStyleSheet()", init); |
| - |
| - function init() |
| - { |
| - InspectorTest.selectNodeAndWaitForStylesWithComputed("main", step0); |
| - } |
| - |
| - function step0() |
| - { |
| - InspectorTest.addResult("Main frame style:"); |
| - InspectorTest.dumpSelectedElementStyles(); |
| - InspectorTest.evaluateInPage("loadIframe()"); |
| - InspectorTest.addConsoleSniffer(step1); |
| - } |
| - |
| - function step1() |
| - { |
| - InspectorTest.selectNodeAndWaitForStylesWithComputed("iframeBody", step2); |
| - } |
| - |
| - function step2() |
| - { |
| - InspectorTest.addResult("iframe style:"); |
| - InspectorTest.dumpSelectedElementStyles(); |
| - InspectorTest.completeTest(); |
| - } |
| -} |
| -</script> |
| -</head> |
| - |
| -<body onload="runTest()"> |
| -<p> |
| -Tests that injected user stylesheets are reflected in the Styles pane. |
| -</p> |
| - |
| -<div id="main"></div> |
| -</body> |
| -</html> |