Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
129 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
test/form/samples/use-class-name-in-static-block/_expected/amd.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
16 changes: 16 additions & 0 deletions
16
test/form/samples/use-class-name-in-static-block/_expected/cjs.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
16 changes: 16 additions & 0 deletions
16
test/form/samples/use-class-name-in-static-block/_expected/es.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
export class Test { | ||
constructor() { | ||
assert.ok(Test.test); | ||
assert.ok(this.getText()); | ||
} | ||
getText() { | ||
return Test.test; | ||
} | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
new Test(); | ||
} | ||
} |
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,6 +1,14 @@ | ||
export class Test { | ||
constructor() { | ||
assert.ok(Test.test); | ||
assert.ok(this.getText()); | ||
} | ||
getText() { | ||
return Test.test; | ||
} | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
new Test(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
test/function/samples/use-class-name-in-static-block/_config.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,4 +1,4 @@ | ||
module.exports = { | ||
description: 'use class name instead of renderName in static block', | ||
minNodeVersion: '16.11.0' | ||
minNodeVersion: 16 | ||
}; |
8 changes: 8 additions & 0 deletions
8
test/function/samples/use-class-name-in-static-block/test1.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,6 +1,14 @@ | ||
export class Test { | ||
constructor() { | ||
assert.ok(Test.test); | ||
assert.ok(this.getText()); | ||
} | ||
getText() { | ||
return Test.test; | ||
} | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
new Test(); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test/function/samples/use-class-name-in-static-block/test2.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,6 +1,14 @@ | ||
export class Test { | ||
constructor() { | ||
assert.ok(Test.test); | ||
assert.ok(this.getText()); | ||
} | ||
getText() { | ||
return Test.test; | ||
} | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
new Test(); | ||
} | ||
} |