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

Unified Diff: LayoutTests/fast/html/imports/rel-style-to-import.html

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Mac build Created 7 years, 7 months 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/fast/html/imports/rel-style-to-import.html
diff --git a/LayoutTests/fast/html/imports/rel-style-to-import.html b/LayoutTests/fast/html/imports/rel-style-to-import.html
new file mode 100644
index 0000000000000000000000000000000000000000..da8a7278b04495d76e5ade2ef12e0d537e1f7f49
--- /dev/null
+++ b/LayoutTests/fast/html/imports/rel-style-to-import.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<script src="../../js/resources/js-test-pre.js"></script>
+<script src="resources/import-helpers.js"></script>
+<head>
+<link id="target", rel="stylesheet" href="resources/hello.css">
+</head>
+<body>
+<script>
+waitAndTest([
+ {
+ description: "Updating attribute value shouldn't result import loading.",
+ setup: function()
+ {
+ debug("Before update:");
+ shouldBeNonNull("target.sheet");
+ shouldBeNull("target.import");
+ target.setAttribute("href", "resources/hello.html");
+ target.setAttribute("rel", "import");
+ window.placeholder = createPlaceholder();
+ },
+ ready: function() { return window.placeholder.import; },
+ test: function()
+ {
+ debug("After update:");
+ shouldBeNonNull("target.sheet");
+ shouldBeNull("target.import");
+ }
+ }
+]);
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698