OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | |
3 <script src=../resources/js-test.js></script> | 4 <script src=../resources/js-test.js></script> |
4 <script src="resources/compatibility.js"></script> | 5 <script src="resources/compatibility.js"></script> |
5 <script> | 6 <script> |
6 var jsTestIsAsync = true; | 7 var jsTestIsAsync = true; |
7 description("Tests re-wrapping an AudioNode sublass after its JS wrapper is dele ted wraps the node as the correct subclass. A binding integrity assert will fire otherwise."); | 8 description("Tests re-wrapping an AudioNode sublass after its JS wrapper is dele ted wraps the node as the correct subclass. A binding integrity assert will fire otherwise."); |
8 </script> | 9 </script> |
9 <script src=resources/scriptprocessornode-testing.js></script> | 10 <script src=resources/scriptprocessornode-testing.js></script> |
10 <script> | 11 <script> |
11 var sampleRate = 44100.0; | 12 var sampleRate = 44100.0; |
12 var sourceChannels = 2; | 13 var sourceChannels = 2; |
13 var inputChannels = 8; | 14 var inputChannels = 8; |
14 var outputChannels = 6; | 15 var outputChannels = 6; |
15 runJSNodeTest(); | 16 runJSNodeTest(); |
16 var docElement = document.body ? document.body : document.documentElement; | 17 var i = document.createElement("iframe"); |
17 function initCF() { | 18 document.body.appendChild(i); |
dcheng
2014/10/20 18:35:14
This test looks really bizarre. Is this originally
| |
18 try { tCF122 = document.createElementNS("http://www.w3.org/1999/xhtml", "ifr ame"); } catch(e) {} | |
19 try { docElement.appendChild(tCF122); } catch(e) {} | |
20 } | |
21 document.addEventListener("DOMContentLoaded", initCF, false); | |
22 </script> | 19 </script> |
20 </body> | |
23 </html> | 21 </html> |
OLD | NEW |