OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 <script src="resources/audio-testing.js"></script> | 5 <script src="resources/audio-testing.js"></script> |
6 </head> | 6 </head> |
7 | 7 |
8 <body> | 8 <body> |
9 <div id="description"></div> | 9 <div id="description"></div> |
10 <div id="console"></div> | 10 <div id="console"></div> |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 testFailed("PannerNode should default to 'HRTF' panningModel."); | 107 testFailed("PannerNode should default to 'HRTF' panningModel."); |
108 | 108 |
109 if (panner.distanceModel === "inverse") | 109 if (panner.distanceModel === "inverse") |
110 testPassed("PannerNode defaults to 'inverse' distanceModel."); | 110 testPassed("PannerNode defaults to 'inverse' distanceModel."); |
111 else | 111 else |
112 testFailed("PannerNode should default to 'inverse' distanceModel."); | 112 testFailed("PannerNode should default to 'inverse' distanceModel."); |
113 | 113 |
114 // Check that the .panningModel attribute can be set to all legal values. | 114 // Check that the .panningModel attribute can be set to all legal values. |
115 var panningModels = [{value: "equalpower", integerValue: panner.EQUALPOWER}, | 115 var panningModels = [{value: "equalpower", integerValue: panner.EQUALPOWER}, |
116 {value: "HRTF", integerValue: panner.HRTF}, | 116 {value: "HRTF", integerValue: panner.HRTF}, |
117 // FIXME: enable "soundfield" once feature is implement
ed: https://bugs.webkit.org/show_bug.cgi?id=77367 | |
118 // {value: "soundfield", integerValue: panner.SOUNDFIEL
D} | |
119 ]; | 117 ]; |
120 | 118 |
121 for (var i = 0; i < panningModels.length; ++i) { | 119 for (var i = 0; i < panningModels.length; ++i) { |
122 try { | 120 try { |
123 panner.panningModel = panningModels[i].value; | 121 panner.panningModel = panningModels[i].value; |
124 if (panner.panningModel === panningModels[i].value) { | 122 if (panner.panningModel === panningModels[i].value) { |
125 var message = "panningModel: '" + panningModels[i].value + "' is
settable."; | 123 var message = "panningModel: '" + panningModels[i].value + "' is
settable."; |
126 testPassed(message); | 124 testPassed(message); |
127 } else { | 125 } else { |
128 var message = "panningModel: '" + panningModels[i].value + "' wa
s not correctly set."; | 126 var message = "panningModel: '" + panningModels[i].value + "' wa
s not correctly set."; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 196 |
199 finishJSTest(); | 197 finishJSTest(); |
200 } | 198 } |
201 | 199 |
202 runTest(); | 200 runTest(); |
203 | 201 |
204 </script> | 202 </script> |
205 | 203 |
206 </body> | 204 </body> |
207 </html> | 205 </html> |
OLD | NEW |