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

Unified Diff: LayoutTests/fast/html/imports/import-cycle-two-parents-1.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-two-parents-1.html
diff --git a/LayoutTests/fast/html/imports/import-cycle-two-parents-1.html b/LayoutTests/fast/html/imports/import-cycle-two-parents-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..4759bd3dd679a508cd09b78fb5c5e3ce092c5e81
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-cycle-two-parents-1.html
@@ -0,0 +1,21 @@
+<!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-two-parents-1-b.html', 'cycle-two-parents-1-c.html', 'cycle-two-parents-1-a.html'], importedDocumentList);
+ t.done();
+ });
+});
+</script>
+</head>
+<body>
+<link rel="import" href="resources/cycle-two-parents-1-a.html">
+<link rel="import" href="resources/cycle-two-parents-1-b.html">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698