mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Convert remaining top-level tests to new system
This commit is contained in:
committed by
Andreas Kling
parent
6d58c48c2f
commit
918f4affd5
Notes:
sideshowbarker
2024-07-19 05:03:58 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/918f4affd51 Pull-request: https://github.com/SerenityOS/serenity/pull/2689 Reviewed-by: https://github.com/linusg
@@ -1,29 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
load("test-common.js");
|
||||
|
||||
try {
|
||||
assert(isStrictMode());
|
||||
test("basic functionality", () => {
|
||||
expect(isStrictMode()).toBeTrue();
|
||||
|
||||
(function () {
|
||||
assert(isStrictMode());
|
||||
})();
|
||||
|
||||
(function () {
|
||||
"use strict";
|
||||
assert(isStrictMode());
|
||||
expect(isStrictMode()).toBeTrue();
|
||||
})();
|
||||
|
||||
(() => {
|
||||
assert(isStrictMode());
|
||||
expect(isStrictMode()).toBeTrue();
|
||||
})();
|
||||
|
||||
(() => {
|
||||
"use strict";
|
||||
assert(isStrictMode());
|
||||
expect(isStrictMode()).toBeTrue();
|
||||
})();
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user