mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 829252 part 4. Turn on the EventTarget quickstubs. r=peterv
This commit is contained in:
parent
1697e0d7f0
commit
42d12beb79
@ -100,6 +100,7 @@ MOCHITEST_FILES = \
|
||||
test_bug742376.html \
|
||||
test_dragstart.html \
|
||||
test_bug812744.html \
|
||||
test_addEventListenerExtraArg.html \
|
||||
$(NULL)
|
||||
|
||||
MOCHITEST_CHROME_FILES = \
|
||||
|
31
content/events/test/test_addEventListenerExtraArg.html
Normal file
31
content/events/test/test_addEventListenerExtraArg.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=828554
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 828554</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 828554 **/
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
window.addEventListener("message", function() {
|
||||
ok(true, "We got called");
|
||||
SimpleTest.finish();
|
||||
}, false, undefined);
|
||||
window.postMessage("Hey there", "*");
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=828554">Mozilla Bug 828554</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
@ -72,9 +72,6 @@
|
||||
"XMLDocument interface: existence and properties of interface prototype object": true,
|
||||
"XMLDocument interface: existence and properties of interface prototype object's \"constructor\" property": true,
|
||||
"Stringification of xmlDoc": "debug",
|
||||
"EventTarget interface: calling addEventListener(DOMString,EventListener,boolean) on xmlDoc with too few arguments must throw TypeError": true,
|
||||
"EventTarget interface: calling removeEventListener(DOMString,EventListener,boolean) on xmlDoc with too few arguments must throw TypeError": true,
|
||||
"EventTarget interface: calling dispatchEvent(Event) on xmlDoc with too few arguments must throw TypeError": true,
|
||||
"DocumentType interface: operation remove()": true,
|
||||
"DocumentType interface: document.doctype must inherit property \"remove\" with the proper type (3)": true,
|
||||
"Element interface: attribute namespaceURI": true,
|
||||
|
@ -76,11 +76,6 @@ members = [
|
||||
'nsIDOMElementCSSInlineStyle.*',
|
||||
'nsIDOMRect.*',
|
||||
|
||||
# dom/interfaces/events
|
||||
'nsIDOMEventTarget.addEventListener',
|
||||
'nsIDOMEventTarget.removeEventListener',
|
||||
'nsIDOMEventTarget.dispatchEvent',
|
||||
|
||||
'nsIDOMEvent.type',
|
||||
'nsIDOMEvent.target',
|
||||
'nsIDOMEvent.currentTarget',
|
||||
@ -337,6 +332,7 @@ customIncludes = [
|
||||
'mozilla/dom/SVGElementBinding.h',
|
||||
'nsPerformance.h',
|
||||
'mozilla/dom/HTMLDocumentBinding.h',
|
||||
'mozilla/dom/EventTargetBinding.h',
|
||||
]
|
||||
|
||||
customReturnInterfaces = [
|
||||
@ -393,4 +389,5 @@ newBindingProperties = {
|
||||
'nsIDOMDocument': 'mozilla::dom::DocumentBinding::sNativePropertyHooks.mNativeProperties.regular',
|
||||
'nsIDOMSVGElement': 'mozilla::dom::SVGElementBinding::sNativePropertyHooks.mNativeProperties.regular',
|
||||
'nsIDOMHTMLDocument': 'mozilla::dom::HTMLDocumentBinding::sNativePropertyHooks.mNativeProperties.regular',
|
||||
'nsIDOMEventTarget': 'mozilla::dom::EventTargetBinding::sNativePropertyHooks.mNativeProperties.regular',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user