mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 22:59:33 +00:00
LibJS: Indent tests with 4 spaces instead of 2
This commit is contained in:
parent
15de2eda2b
commit
1ef573eb30
Notes:
sideshowbarker
2024-07-19 05:03:50 +09:00
Author: https://github.com/mattco98
Commit: 1ef573eb30
Pull-request: https://github.com/SerenityOS/serenity/pull/2689
Reviewed-by: https://github.com/linusg
261 changed files with 8536 additions and 8497 deletions
|
@ -1,24 +1,24 @@
|
|||
test("basic functionality", () => {
|
||||
function Foo() {
|
||||
this.x = 123;
|
||||
}
|
||||
function Foo() {
|
||||
this.x = 123;
|
||||
}
|
||||
|
||||
const foo = new Foo();
|
||||
expect(foo instanceof Foo).toBeTrue();
|
||||
const foo = new Foo();
|
||||
expect(foo instanceof Foo).toBeTrue();
|
||||
});
|
||||
|
||||
test("derived ES5 classes", () => {
|
||||
function Base() {
|
||||
this.is_base = true;
|
||||
}
|
||||
function Base() {
|
||||
this.is_base = true;
|
||||
}
|
||||
|
||||
function Derived() {
|
||||
this.is_derived = true;
|
||||
}
|
||||
function Derived() {
|
||||
this.is_derived = true;
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(Derived.prototype, Base.prototype);
|
||||
Object.setPrototypeOf(Derived.prototype, Base.prototype);
|
||||
|
||||
const d = new Derived();
|
||||
expect(d instanceof Derived).toBeTrue();
|
||||
expect(d instanceof Base).toBeTrue();
|
||||
const d = new Derived();
|
||||
expect(d instanceof Derived).toBeTrue();
|
||||
expect(d instanceof Base).toBeTrue();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue