-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
14 changed files
with
164 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
description: 'use class name instead of renderName in static block', | ||
solo: true | ||
}; |
20 changes: 20 additions & 0 deletions
20
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
define((function () { 'use strict'; | ||
|
||
let Test$1 = class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
}; | ||
|
||
class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} | ||
|
||
assert.ok(Test$1.test); | ||
assert.ok(Test.test); | ||
|
||
})); |
18 changes: 18 additions & 0 deletions
18
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
let Test$1 = class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
}; | ||
|
||
class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} | ||
|
||
assert.ok(Test$1.test); | ||
assert.ok(Test.test); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
let Test$1 = class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
}; | ||
|
||
class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} | ||
|
||
assert.ok(Test$1.test); | ||
assert.ok(Test.test); |
21 changes: 21 additions & 0 deletions
21
test/form/samples/use-class-name-in-static-block/_expected/iife.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,21 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
let Test$1 = class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
}; | ||
|
||
class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} | ||
|
||
assert.ok(Test$1.test); | ||
assert.ok(Test.test); | ||
|
||
})(); |
25 changes: 25 additions & 0 deletions
25
test/form/samples/use-class-name-in-static-block/_expected/system.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 @@ | ||
System.register([], (function () { | ||
'use strict'; | ||
return { | ||
execute: (function () { | ||
|
||
let Test$1 = class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
}; | ||
|
||
class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} | ||
|
||
assert.ok(Test$1.test); | ||
assert.ok(Test.test); | ||
|
||
}) | ||
}; | ||
})); |
23 changes: 23 additions & 0 deletions
23
test/form/samples/use-class-name-in-static-block/_expected/umd.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,23 @@ | ||
(function (factory) { | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
factory(); | ||
})((function () { 'use strict'; | ||
|
||
let Test$1 = class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
}; | ||
|
||
class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} | ||
|
||
assert.ok(Test$1.test); | ||
assert.ok(Test.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Test } from './test1.js'; | ||
import { Test as Test2 } from './test2.js'; | ||
|
||
assert.ok(Test.test); | ||
assert.ok(Test2.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
description: 'use class name instead of renderName in static block' | ||
}; |
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,5 @@ | ||
import { Test } from './test1.js'; | ||
import { Test as Test2 } from './test2.js'; | ||
|
||
assert.ok(Test.test); | ||
assert.ok(Test2.test); |
6 changes: 6 additions & 0 deletions
6
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class Test { | ||
static test = 'Test1'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class Test { | ||
static test = 'Test2'; | ||
static { | ||
assert.ok(Test.test); | ||
} | ||
} |