mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibJS: Convert some top-level tests to the new system
First test conversions! These look really good :)
This commit is contained in:
parent
4b8a3e6d78
commit
eea6041302
Notes:
sideshowbarker
2024-07-19 05:05:09 +09:00
Author: https://github.com/mattco98
Commit: eea6041302
Pull-request: https://github.com/SerenityOS/serenity/pull/2689
Reviewed-by: https://github.com/linusg
22 changed files with 464 additions and 451 deletions
|
@ -1,9 +1,3 @@
|
|||
load("test-common.js");
|
||||
|
||||
try {
|
||||
i < 3;
|
||||
} catch (e) {
|
||||
assert(e.name === "ReferenceError");
|
||||
}
|
||||
|
||||
console.log("PASS");
|
||||
test("unknown variable produces ReferenceError", () => {
|
||||
expect(new Function("i < 3")).toThrow(ReferenceError);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue