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

Unified Diff: LayoutTests/userstyles/insert-stylesheets.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/userstyles/insert-stylesheets.html
diff --git a/LayoutTests/userstyles/insert-stylesheets.html b/LayoutTests/userstyles/insert-stylesheets.html
deleted file mode 100644
index fbe08bdd7d515d6054fa783c1e68a3025abdf843..0000000000000000000000000000000000000000
--- a/LayoutTests/userstyles/insert-stylesheets.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<style>
- .styled {
- background-color: red;
- width: 0;
- height: 100px;
- }
-</style>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-<p>This test requires testRunner and window.internals.</p>
-<div id="test" class="styled"></div>
-<script>
-function test()
-{
- if (!window.testRunner)
- return;
- testRunner.dumpAsText();
- window.testElement = document.getElementById("test");
- shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(255, 0, 0)'");
- shouldBe("testElement.offsetWidth", "0");
-
- if (!window.internals)
- return;
-
- // The author style above should override this user style.
- internals.insertUserCSS(document, "body .styled { background-color: green; width: 100px; }");
- shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(255, 0, 0)'");
- shouldBe("testElement.offsetWidth", "0");
-
- // Since this style is more specific, it should override the original author style above.
- internals.insertAuthorCSS(document, "body .styled { background-color: green; width: 100px; }");
- shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(0, 128, 0)'");
- shouldBe("testElement.offsetWidth", "100");
-}
-
-test();
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/printing/page-rule-selection.html ('k') | LayoutTests/userstyles/insert-stylesheets-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698