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/fast/html/imports/import-success-fail.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/import-success-fail.html
diff --git a/LayoutTests/fast/html/imports/import-success-fail.html b/LayoutTests/fast/html/imports/import-success-fail.html
new file mode 100644
index 0000000000000000000000000000000000000000..50241d37b496302a124230b14b1d956ff21cd69b
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-success-fail.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<script src="../../js/resources/js-test-pre.js"></script>
+<head>
+<link id="toSuccess" rel="import" href="resources/hello.html">
+<link id="toFail" rel="import" href="resources/no-such-file.html">
+<link id="notImport" rel="stylesheet" href="resources/no-such-file.css">
+</head>
+<body>
+<script>
+shouldBe("toSuccess.import.querySelector('h1').innerHTML", "'Hello'");
+shouldBeNonNull("toSuccess.import.querySelector('html')");
+shouldBeNull("toFail.import");
+shouldBeNull("notImport.import");
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698