Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / htmlimports / import-async-previous.html
blob174652f2e6b390e2fc7970fb2c64f6340f32163d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <script src="resources/async-block-helper.js"></script>
7 <script>
8 var test = async_test('With the async attribute, link element don\'t block the script execution of following imports.');
10 function readySync() {
11 test.step(function() {
12 assert_false(isImportLoaded('has-slow-script.html'), 'A script in sync import has not to be excuted yet.');
13 assert_true(isImportLoaded('not-slow.html'), 'A script in following import is executed wihtout waiting slow script.');
14 });
17 function readyAsync() {
18 test.step(function() {
19 assert_true(isImportLoaded('has-slow-script.html'), 'A script in sync import has not to be excuted yet.');
20 assert_true(isImportLoaded('not-slow.html'), 'A script in following import is executed wihtout waiting slow script.');
21 test.done();
22 });
24 </script>
25 <link async rel="import" href="resources/has-slow-script.html" onload="readyAsync()">
26 <link rel="import" href="resources/not-slow.html" onload="readySync()">
27 </head>
28 <body></body>
29 </html>