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

Unified Diff: LayoutTests/http/tests/htmlimports/cors-same-origin.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/http/tests/htmlimports/cors-same-origin.html
diff --git a/LayoutTests/http/tests/htmlimports/cors-same-origin.html b/LayoutTests/http/tests/htmlimports/cors-same-origin.html
new file mode 100644
index 0000000000000000000000000000000000000000..d24d78b8486af101e9a11a6405a3f8744aa20309
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/cors-same-origin.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link id="target" rel="import" href="http://localhost:8080/htmlimports/resources/cors-basic.cgi">
+<script src="/js-test-resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+shouldBe("target.import.querySelector('h1').innerHTML", "'Hello, CORS!'");
+</script>
+<script src="/js-test-resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698