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

Side by Side Diff: LayoutTests/fast/css/user-stylesheet-crash.html

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests 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
(Empty)
1 <html>
2 <head>
3 <script>
4 function createIframe()
5 {
6 var iframe = document.createElement("iframe");
7 document.body.appendChild(iframe);
8 var iframeDocument = iframe.contentDocument;
9 var link = iframeDocument.createElement("link");
10 link.setAttribute("rel", "stylesheet");
11 link.setAttribute("href", "does_not_exist.css");
12 iframeDocument.head.appendChild(link);
13 if (window.testRunner) {
14 testRunner.addUserStyleSheet("#test { color: blue: }", true);
15 setTimeout("window.testRunner.notifyDone()", 100);
16 }
17 }
18
19 if (window.testRunner) {
20 testRunner.dumpAsText();
21 testRunner.waitUntilDone();
22 testRunner.addUserStyleSheet("#test { color: red: }", true);
23 }
24 window.onload = createIframe;
25
26 </script>
27 </head>
28 <body>
29 This test requires DRT. It passes if it doesn't crash.
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698