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

Side by Side Diff: LayoutTests/inspector/styles/inject-stylesheet.html

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 #main { background:blue; } 5 #main { background:blue; }
6 </style> 6 </style>
7 7
8 <script src="../../http/tests/inspector/inspector-test.js"></script> 8 <script src="../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../http/tests/inspector/elements-test.js"></script> 9 <script src="../../http/tests/inspector/elements-test.js"></script>
10 <script> 10 <script>
11 11
12 function injectStyleSheet() 12 function injectStyleSheet()
13 { 13 {
14 var styleSheet = "#main { color: red; -webkit-border-image: url(data:image/p ng;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAiElEQVR42r2RsQrDMAxEBR dl8SDcX8lQPGg1GBI6lvz/h7QyRRXV0qUULwfvwZ1tenw5PxToRPWMC52eA9+WDnlh3HFQ/xBQl86NFY JqeGflkiogrOvVlIFhqURFVho3x1moGAa3deMs+LS30CAhBN5nNxeT5hbJ1zwmji2k+aF6NENIPf/hs5 4f0sZFUVAMigAAAABJRU5ErkJggg==) } #iframeBody { background: red }"; 14 var styleSheet = "#main { color: red; -webkit-border-image: url(data:image/p ng;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAiElEQVR42r2RsQrDMAxEBR dl8SDcX8lQPGg1GBI6lvz/h7QyRRXV0qUULwfvwZ1tenw5PxToRPWMC52eA9+WDnlh3HFQ/xBQl86NFY JqeGflkiogrOvVlIFhqURFVho3x1moGAa3deMs+LS30CAhBN5nNxeT5hbJ1zwmji2k+aF6NENIPf/hs5 4f0sZFUVAMigAAAABJRU5ErkJggg==) } #iframeBody { background: red }";
15 if (window.testRunner) 15 if (window.testRunner)
16 window.testRunner.addUserStyleSheet(styleSheet, true); 16 window.testRunner.injectStyleSheet(styleSheet, true);
vsevik 2013/11/08 20:39:01 Reading the test description it seems that it shou
apavlov 2013/11/09 07:51:04 IIRC, this tests stylesheet injection by extension
17 } 17 }
18 18
19 function loadIframe() 19 function loadIframe()
20 { 20 {
21 var iframe = document.createElement("iframe"); 21 var iframe = document.createElement("iframe");
22 iframe.src = "resources/inject-stylesheet-iframe-data.html"; 22 iframe.src = "resources/inject-stylesheet-iframe-data.html";
23 document.getElementById("main").appendChild(iframe); 23 document.getElementById("main").appendChild(iframe);
24 } 24 }
25 25
26 function test() 26 function test()
(...skipping 29 matching lines...) Expand all
56 </head> 56 </head>
57 57
58 <body onload="runTest()"> 58 <body onload="runTest()">
59 <p> 59 <p>
60 Tests that injected user stylesheets are reflected in the Styles pane. 60 Tests that injected user stylesheets are reflected in the Styles pane.
61 </p> 61 </p>
62 62
63 <div id="main"></div> 63 <div id="main"></div>
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698