Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: LayoutTests/webaudio/audionode.html

Issue 14028011: Made AudioNode an EventTarget (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Made AudioNode an EventTarget Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/webaudio/audionode.html
diff --git a/LayoutTests/webaudio/audionode.html b/LayoutTests/webaudio/audionode.html
index dd0dc32958a5ed2f8d7baf4c4d64de134ad7f524..bbe486b12b90402d676b08fdc48ec981c6fb604a 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("Audio Node 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();
}
« no previous file with comments | « no previous file | LayoutTests/webaudio/audionode-expected.txt » ('j') | LayoutTests/webaudio/audionode-expected.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698