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

Unified Diff: LayoutTests/fast/html/imports/resources/child-frame-with-import.html

Issue 23933004: Add tests for imports in iframe (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 3 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/resources/child-frame-with-import.html
diff --git a/LayoutTests/fast/html/imports/resources/child-frame-with-import.html b/LayoutTests/fast/html/imports/resources/child-frame-with-import.html
new file mode 100644
index 0000000000000000000000000000000000000000..49c3ce96b3adfa40d899ab7f3a70aabe1bf687b7
--- /dev/null
+++ b/LayoutTests/fast/html/imports/resources/child-frame-with-import.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function importLoaded()
+{
+ window.parent.titleText = target.import.querySelector('h1').innerHTML;
dominicc (has gone to gerrit) 2013/09/13 01:33:03 Heading text? This is a H1, not TITLE.
Hajime Morrita 2013/09/13 03:06:34 Done.
+ window.parent.shouldBe("titleText", "'Hello'");
dominicc (has gone to gerrit) 2013/09/13 01:33:03 Again, doesn't this needlessly switch from ' to "?
Hajime Morrita 2013/09/13 03:06:34 Done.
+ window.parent.finishJSTest();
+}
+</script>
+<link id="target", rel="import" href="hello.html" onload="importLoaded()">
dominicc (has gone to gerrit) 2013/09/13 01:33:03 Delete comma in the attribute list.
Hajime Morrita 2013/09/13 03:06:34 Done.
+</head>
+<body>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698