Index: LayoutTests/webaudio/audionode.html |
diff --git a/LayoutTests/webaudio/audionode.html b/LayoutTests/webaudio/audionode.html |
index dd0dc32958a5ed2f8d7baf4c4d64de134ad7f524..f5baec71cb6c0655095f05d24bb99617603be877 100644 |
--- a/LayoutTests/webaudio/audionode.html |
+++ b/LayoutTests/webaudio/audionode.html |
@@ -101,6 +101,16 @@ function runTest() { |
testPassed("exception thrown when creating audio context with not enough arguments."); |
} |
+ // Ensure it is an EventTarget |
+ try { |
+ audioNode.addEventListener('testEvent', function(){ |
+ testPassed("AudioNode is an EventTarget"); |
+ }); |
+ audioNode.dispatchEvent(new Event('testEvent')); |
+ } catch(e) { |
+ testFailed("exception shouldn't be thrown when testing whether audio node is an event target"); |
+ } |
+ |
finishJSTest(); |
} |