OLD | NEW |
1 <!doctype html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test Constructor: ConstantSource</title> | 4 <title> |
| 5 Test Constructor: ConstantSource |
| 6 </title> |
5 <script src="../../resources/testharness.js"></script> | 7 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 8 <script src="../../resources/testharnessreport.js"></script> |
7 <script src="../resources/audit-util.js"></script> | 9 <script src="../resources/audit-util.js"></script> |
8 <script src="../resources/audit.js"></script> | 10 <script src="../resources/audit.js"></script> |
9 <script src="audionodeoptions.js"></script> | 11 <script src="audionodeoptions.js"></script> |
10 </head> | 12 </head> |
| 13 <body> |
| 14 <script id="layout-test-code"> |
| 15 let context; |
11 | 16 |
12 <body> | 17 let audit = Audit.createTaskRunner(); |
13 <script> | |
14 var context; | |
15 | |
16 var audit = Audit.createTaskRunner(); | |
17 | 18 |
18 audit.define('initialize', (task, should) => { | 19 audit.define('initialize', (task, should) => { |
19 context = initializeContext(should); | 20 context = initializeContext(should); |
20 task.done(); | 21 task.done(); |
21 }); | 22 }); |
22 | 23 |
23 audit.define('invalid constructor', (task, should) => { | 24 audit.define('invalid constructor', (task, should) => { |
24 testInvalidConstructor(should, 'ConstantSourceNode', context); | 25 testInvalidConstructor(should, 'ConstantSourceNode', context); |
25 task.done(); | 26 task.done(); |
26 }); | 27 }); |
(...skipping 13 matching lines...) Expand all Loading... |
40 testDefaultAttributes( | 41 testDefaultAttributes( |
41 should, node, prefix, [{name: 'offset', value: 1}]); | 42 should, node, prefix, [{name: 'offset', value: 1}]); |
42 | 43 |
43 task.done(); | 44 task.done(); |
44 }); | 45 }); |
45 | 46 |
46 audit.run(); | 47 audit.run(); |
47 </script> | 48 </script> |
48 </body> | 49 </body> |
49 </html> | 50 </html> |
OLD | NEW |