forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=228316 <rdar://problem/81446162> Reviewed by Sam Weinig. LayoutTests/imported/w3c: Import test coverage from: - web-platform-tests/wpt#29738 * web-platform-tests/html/webappapis/scripting/reporterror.any-expected.txt: Added. * web-platform-tests/html/webappapis/scripting/reporterror.any.html: Added. * web-platform-tests/html/webappapis/scripting/reporterror.any.js: Added. (undefined.forEach.throwable.test.t.assert_equals): (test): * web-platform-tests/html/webappapis/scripting/reporterror.any.worker-expected.txt: Added. * web-platform-tests/html/webappapis/scripting/reporterror.any.worker.html: Added. * web-platform-tests/html/webappapis/scripting/w3c-import.log: Added. Source/WebCore: Implement self.reportError() as per: - whatwg/html#1196 Firefox already shipped this and Chrome will do so soon too. Tests: imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.html imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.worker.html * page/DOMWindow.cpp: (WebCore::DOMWindow::reportError): * page/DOMWindow.h: * page/WindowOrWorkerGlobalScope.idl: * workers/WorkerGlobalScope.cpp: (WebCore::WorkerGlobalScope::reportError): * workers/WorkerGlobalScope.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@281756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
2c3585c
commit 1eb5a82
Showing
13 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
2021-08-30 Chris Dumez <[email protected]> | ||
|
||
Implement self.reportError() | ||
https://bugs.webkit.org/show_bug.cgi?id=228316 | ||
<rdar://problem/81446162> | ||
|
||
Reviewed by Sam Weinig. | ||
|
||
Import test coverage from: | ||
- https://github.com/web-platform-tests/wpt/pull/29738 | ||
|
||
* web-platform-tests/html/webappapis/scripting/reporterror.any-expected.txt: Added. | ||
* web-platform-tests/html/webappapis/scripting/reporterror.any.html: Added. | ||
* web-platform-tests/html/webappapis/scripting/reporterror.any.js: Added. | ||
(undefined.forEach.throwable.test.t.assert_equals): | ||
(test): | ||
* web-platform-tests/html/webappapis/scripting/reporterror.any.worker-expected.txt: Added. | ||
* web-platform-tests/html/webappapis/scripting/reporterror.any.worker.html: Added. | ||
* web-platform-tests/html/webappapis/scripting/w3c-import.log: Added. | ||
|
||
2021-08-27 Antti Koivisto <[email protected]> | ||
|
||
[CSS Cascade Layers] Initial support | ||
|
9 changes: 9 additions & 0 deletions
9
...ts/imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CONSOLE MESSAGE: 1 | ||
CONSOLE MESSAGE: TypeError | ||
CONSOLE MESSAGE: undefined | ||
|
||
PASS self.reportError(1) | ||
PASS self.reportError(TypeError) | ||
PASS self.reportError(undefined) | ||
PASS self.reportError() (without arguments) throws | ||
|
1 change: 1 addition & 0 deletions
1
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- This file is required for WebKit test infrastructure to run the templated test --> |
25 changes: 25 additions & 0 deletions
25
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
setup({ allow_uncaught_exception:true }); | ||
|
||
[ | ||
1, | ||
new TypeError(), | ||
undefined | ||
].forEach(throwable => { | ||
test(t => { | ||
let happened = false; | ||
self.addEventListener("error", t.step_func(e => { | ||
assert_true(e.message !== ""); | ||
assert_equals(e.filename, new URL("reporterror.any.js", location.href).href); | ||
assert_greater_than(e.lineno, 0); | ||
assert_greater_than(e.colno, 0); | ||
assert_equals(e.error, throwable); | ||
happened = true; | ||
}), { once:true }); | ||
self.reportError(throwable); | ||
assert_true(happened); | ||
}, `self.reportError(${throwable})`); | ||
}); | ||
|
||
test(() => { | ||
assert_throws_js(TypeError, () => self.reportError()); | ||
}, `self.reportError() (without arguments) throws`); |
6 changes: 6 additions & 0 deletions
6
...rted/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.worker-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
PASS self.reportError(1) | ||
PASS self.reportError(TypeError) | ||
PASS self.reportError(undefined) | ||
PASS self.reportError() (without arguments) throws | ||
|
1 change: 1 addition & 0 deletions
1
...sts/imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.worker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- This file is required for WebKit test infrastructure to run the templated test --> |
17 changes: 17 additions & 0 deletions
17
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/w3c-import.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
The tests in this directory were imported from the W3C repository. | ||
Do NOT modify these tests directly in WebKit. | ||
Instead, create a pull request on the WPT github: | ||
https://github.com/web-platform-tests/wpt | ||
|
||
Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport | ||
|
||
Do NOT modify or remove this file. | ||
|
||
------------------------------------------------------------------------ | ||
Properties requiring vendor prefixes: | ||
None | ||
Property values requiring vendor prefixes: | ||
None | ||
------------------------------------------------------------------------ | ||
List of files: | ||
/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
2021-08-30 Chris Dumez <[email protected]> | ||
|
||
Implement self.reportError() | ||
https://bugs.webkit.org/show_bug.cgi?id=228316 | ||
<rdar://problem/81446162> | ||
|
||
Reviewed by Sam Weinig. | ||
|
||
Implement self.reportError() as per: | ||
- https://github.com/whatwg/html/pull/1196 | ||
|
||
Firefox already shipped this and Chrome will do so soon too. | ||
|
||
Tests: imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.html | ||
imported/w3c/web-platform-tests/html/webappapis/scripting/reporterror.any.worker.html | ||
|
||
* page/DOMWindow.cpp: | ||
(WebCore::DOMWindow::reportError): | ||
* page/DOMWindow.h: | ||
* page/WindowOrWorkerGlobalScope.idl: | ||
* workers/WorkerGlobalScope.cpp: | ||
(WebCore::WorkerGlobalScope::reportError): | ||
* workers/WorkerGlobalScope.h: | ||
|
||
2021-08-30 Alan Bujtas <[email protected]> | ||
|
||
[LFC][IFC] Introduce Line::Run::Text to hold text content related properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters