Auto merge of #25816 - gterzian:fix_window_postmessage_test, r=jdm

Expect dom syntax error in window postmessage sameorigin test

<!-- Please describe your changes on the following line: -->

FIX #25808

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-02-21 03:07:44 -05:00 committed by GitHub
commit 9c3feb746b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 9 deletions

View file

@ -14500,7 +14500,7 @@
]
],
"window-postmessage-sameorigin.html": [
"6a1d00fd1c37fcf1492ecb48a02fe358ac2cbacf",
"cb3bc26e8821b73bcee0455c765362ab731bf3fa",
[
null,
{}

View file

@ -1,7 +0,0 @@
[window-postmessage-sameorigin.html]
[explicit invalid url, cloneable string message (handler)]
expected: FAIL
[explicit invalid url, cloneable string message (listener)]
expected: FAIL

View file

@ -56,7 +56,7 @@ var base_tests = [
function() { return expect_message('basic', '/', 'same origin, cloneable string message') },
function() { return expect_message('basic', HTTP_ORIGIN, 'explicit same origin, cloneable string message') },
function() { return expect_no_message('basic', HTTPS_ORIGIN, 'explicit cross origin, cloneable string message') },
function() { return expect_error_js(SyntaxError, 'basic', 'not-a-url', 'explicit invalid url, cloneable string message') },
function() { return expect_error_dom('SyntaxError', 'basic', 'not-a-url', 'explicit invalid url, cloneable string message') },
function() { return expect_error_dom('DATA_CLONE_ERR', window, '*', 'any origin, non-cloneable message') },
];