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

Unified Diff: LayoutTests/http/tests/security/local-user-CSS-from-remote.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/local-user-CSS-from-remote.html
diff --git a/LayoutTests/http/tests/security/local-user-CSS-from-remote.html b/LayoutTests/http/tests/security/local-user-CSS-from-remote.html
deleted file mode 100644
index a09b9b61a023314f0699cfff4cbbbf3d25fc00dd..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/local-user-CSS-from-remote.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<html>
-<head>
-<title>User Stylesheet Test</title>
-<script type="text/javascript">
- if (window.testRunner) {
- testRunner.dumpAsText();
-
- // This won't work outside of DRT!
- if (window.location.hash == '') {
- testRunner.waitUntilDone();
- var stylesheetLocation = testRunner.pathToLocalResource("file:///tmp/LayoutTests/http/tests/security/resources/cssStyle.css");
- testRunner.setUserStyleSheetLocation(stylesheetLocation);
- testRunner.setUserStyleSheetEnabled(true);
- location += '?#done';
- }
- }
-
- function backgroundCheck() {
- var result = document.getElementById("result");
- var myBody = document.getElementById("myBody");
-
- var style = document.defaultView.getComputedStyle(myBody, null);
- var bgColor = style.getPropertyValue("background-color");
- if (bgColor[4] == 2) {
- result.innerHTML = "Test Passed: Local user stylesheet loaded.";
- } else {
- result.innerHTML = "Test Failed: Local user stylesheet not loaded into remote document.";
- }
-
- if (window.testRunner) {
- testRunner.setUserStyleSheetEnabled(false);
- testRunner.notifyDone();
- }
- }
-</script>
-</head>
-<body id="myBody" onload="backgroundCheck()">
- <div id="other">
- This test is to see if a remote file can include a local user stylesheet.
- <br />
- To run this test manually you must set your user style sheet in your Safari preferences
- to LayoutTests/http/tests/security/resources/cssStyle.css
- <br/>
- If the background is yellow then the user stylesheet was loaded.
- </div>
- </br>
- <div id="result">
- Test not run correctly.
- </div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698