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

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: upate to latest Created 7 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/webaudio/audionode-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | LayoutTests/webaudio/audionode-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698