https://bugs.webkit.org/show_bug.cgi?id=83688
Reviewed by Adam Barth.
Source/WebCore:
The IDL files where missing addEventListener, removeEventListener and dispatchEvent.
Tests: fast/filesystem/file-writer-events.html
fast/speech/scripted/basics.html
* Modules/filesystem/FileWriter.idl: Add missing methods.
* Modules/mediastream/LocalMediaStream.idl: This one gets its EventTarget from MediaStream.
* Modules/speech/SpeechRecognition.idl: Add missing methods.
LayoutTests:
* fast/filesystem/resources/file-writer-events.js:
(runTest):
* fast/speech/scripted/basics-expected.txt:
* fast/speech/scripted/basics.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113924
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-11 Erik Arvidsson <arv@chromium.org>
+
+ File API does not support DOM events (like addEventListener)
+ https://bugs.webkit.org/show_bug.cgi?id=83688
+
+ Reviewed by Adam Barth.
+
+ * fast/filesystem/resources/file-writer-events.js:
+ (runTest):
+ * fast/speech/scripted/basics-expected.txt:
+ * fast/speech/scripted/basics.html:
+
2012-04-11 Sheriff Bot <webkit.review.bot@gmail.com>
Unreviewed, rolling out r113912.
}
function runTest(unusedFileEntry, fileWriter) {
+ assert(typeof fileWriter.addEventListener === 'function');
+ assert(typeof fileWriter.removeEventListener === 'function');
+ assert(typeof fileWriter.dispatchEvent === 'function');
startWrite(fileWriter);
}
var jsTestIsAsync = true;
PASS 'onerror' in speechReco is true
PASS 'onstart' in speechReco is true
PASS 'onend' in speechReco is true
+PASS 'addEventListener' in speechReco is true
+PASS 'removeEventListener' in speechReco is true
+PASS 'dispatchEvent' in speechReco is true
shouldBeTrue("'onstart' in speechReco");
shouldBeTrue("'onend' in speechReco");
+ shouldBeTrue("'addEventListener' in speechReco");
+ shouldBeTrue("'removeEventListener' in speechReco");
+ shouldBeTrue("'dispatchEvent' in speechReco");
+
finishJSTest();
}
+2012-04-11 Erik Arvidsson <arv@chromium.org>
+
+ File API does not support DOM events (like addEventListener)
+ https://bugs.webkit.org/show_bug.cgi?id=83688
+
+ Reviewed by Adam Barth.
+
+ The IDL files where missing addEventListener, removeEventListener and dispatchEvent.
+
+ Tests: fast/filesystem/file-writer-events.html
+ fast/speech/scripted/basics.html
+
+ * Modules/filesystem/FileWriter.idl: Add missing methods.
+ * Modules/mediastream/LocalMediaStream.idl: This one gets its EventTarget from MediaStream.
+ * Modules/speech/SpeechRecognition.idl: Add missing methods.
+
2012-04-11 Andy Estes <aestes@apple.com>
LayerFlushScheduler's run loop observer should have an autorelease pool.
attribute EventListener onabort;
attribute EventListener onerror;
attribute EventListener onwriteend;
+
+ // EventTarget interface
+ void addEventListener(in DOMString type,
+ in EventListener listener,
+ in [Optional] boolean useCapture);
+ void removeEventListener(in DOMString type,
+ in EventListener listener,
+ in [Optional] boolean useCapture);
+ boolean dispatchEvent(in Event evt)
+ raises(EventException);
};
}
interface [
Conditional=MEDIA_STREAM,
JSGenerateToNativeObject,
- EventTarget,
JSGenerateToJSObject
] LocalMediaStream : MediaStream {
[ImplementedAs=stopFunction] void stop();
attribute EventListener onerror;
attribute EventListener onstart;
attribute EventListener onend;
+
+ // EventTarget interface
+ void addEventListener(in DOMString type,
+ in EventListener listener,
+ in [Optional] boolean useCapture);
+ void removeEventListener(in DOMString type,
+ in EventListener listener,
+ in [Optional] boolean useCapture);
+ boolean dispatchEvent(in Event evt)
+ raises(EventException);
};
}