Auto merge of #11051 - mrmiywj:closeevent-argument, r=Ms2ger

'closeevent' argument for Document::createEvent

Add "close event" argument for Document::createEvent
Fixes #10737

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11051)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-09 00:48:41 -07:00
commit a76db9af54
4 changed files with 10 additions and 30 deletions

View file

@ -37,30 +37,6 @@
[createEvent('BEFOREUNLOADEVENT') should be initialized correctly.]
expected: FAIL
[CloseEvent should be an alias for CloseEvent.]
bug: https://github.com/servo/servo/issues/10737
expected: FAIL
[createEvent('CloseEvent') should be initialized correctly.]
bug: https://github.com/servo/servo/issues/10737
expected: FAIL
[closeevent should be an alias for CloseEvent.]
bug: https://github.com/servo/servo/issues/10737
expected: FAIL
[createEvent('closeevent') should be initialized correctly.]
bug: https://github.com/servo/servo/issues/10737
expected: FAIL
[CLOSEEVENT should be an alias for CloseEvent.]
bug: https://github.com/servo/servo/issues/10737
expected: FAIL
[createEvent('CLOSEEVENT') should be initialized correctly.]
bug: https://github.com/servo/servo/issues/10737
expected: FAIL
[CompositionEvent should be an alias for CompositionEvent.]
expected: FAIL

View file

@ -5,12 +5,6 @@
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
assert_throws("NotSupportedError", function() {
document.createEvent("CloseEvent")
});
}, "createEvent(\"CloseEvent\")");
test(function() {
assert_false("initCloseEvent" in CloseEvent.prototype);
assert_false("initCloseEvent" in new CloseEvent('close'));