OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 Exported functions: | 6 Exported functions: |
7 assertCSSResponsive | 7 assertCSSResponsive |
8 assertSVGResponsive | 8 assertSVGResponsive |
9 | 9 |
10 Exported objects: | 10 Exported objects: |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 274 |
275 function loadScript(url) { | 275 function loadScript(url) { |
276 return new Promise(resolve => { | 276 return new Promise(resolve => { |
277 var script = document.createElement('script'); | 277 var script = document.createElement('script'); |
278 script.src = url; | 278 script.src = url; |
279 script.onload = resolve; | 279 script.onload = resolve; |
280 document.head.appendChild(script); | 280 document.head.appendChild(script); |
281 }); | 281 }); |
282 } | 282 } |
283 | 283 |
284 loadScript('../../resources/testharness.js').then(() => { | 284 loadScript('../../../resources/testharness.js').then(() => { |
285 return loadScript('../../resources/testharnessreport.js'); | 285 return loadScript('../../../resources/testharnessreport.js'); |
286 }).then(() => { | 286 }).then(() => { |
287 var asyncHandle = async_test('This test uses responsive-test.js.') | 287 var asyncHandle = async_test('This test uses responsive-test.js.') |
288 runPendingResponsiveTests().then(() => { | 288 runPendingResponsiveTests().then(() => { |
289 asyncHandle.done(); | 289 asyncHandle.done(); |
290 }); | 290 }); |
291 }); | 291 }); |
292 | 292 |
293 | 293 |
294 window.assertCSSResponsive = assertCSSResponsive; | 294 window.assertCSSResponsive = assertCSSResponsive; |
295 window.assertSVGResponsive = assertSVGResponsive; | 295 window.assertSVGResponsive = assertSVGResponsive; |
296 window.neutralKeyframe = neutralKeyframe; | 296 window.neutralKeyframe = neutralKeyframe; |
297 | 297 |
298 })(); | 298 })(); |
OLD | NEW |