Bug 829252 part 4. Turn on the EventTarget quickstubs. r=peterv

This commit is contained in:
Boris Zbarsky 2013-01-29 08:44:01 -05:00
Родитель fe29b143cd
Коммит d2613fc2a0
4 изменённых файлов: 34 добавлений и 8 удалений

Просмотреть файл

@ -100,6 +100,7 @@ MOCHITEST_FILES = \
test_bug742376.html \
test_dragstart.html \
test_bug812744.html \
test_addEventListenerExtraArg.html \
$(NULL)
MOCHITEST_CHROME_FILES = \

Просмотреть файл

@ -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',
}