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

Unified Diff: LayoutTests/fast/html/imports/import-cycle-parent.html

Issue 289993004: HTML Imports: Take care of cycles according to the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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-cycle-parent.html
diff --git a/LayoutTests/fast/html/imports/import-cycle-parent.html b/LayoutTests/fast/html/imports/import-cycle-parent.html
new file mode 100644
index 0000000000000000000000000000000000000000..8fbed7c18d3338dfca306690c243ac5dbbf1e58e
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-cycle-parent.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script src="../../../http/tests/htmlimports/resources/normalize-test-helper.js"></script>
+<script>
+var t = async_test('Imports with cycle complete loading in a defined order.');
+window.addEventListener('load', function() {
+ t.step(function() {
+ assert_array_equals(['cycle-parent-b.html', 'cycle-parent-a.html'], importedDocumentList);
+ t.done();
+ });
+});
+</script>
+</head>
+<body>
+<link rel="import" href="resources/cycle-parent-a.html">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698