JS: add tests for quickfix: autoimport for Kotlin/Javascript projects
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Please specify constructor invocation; classifier 'HTMLStyleElement' does not have a companion object
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.js.dom.html.HTMLStyleElement
|
||||
|
||||
fun foo() {
|
||||
HTMLStyleElement
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Import" "true"
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.js.dom.html5.localStorage
|
||||
|
||||
fun foo() {
|
||||
localStorage
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Import" "true"
|
||||
package some
|
||||
|
||||
import jquery.jq
|
||||
|
||||
fun testFun() {
|
||||
jq()
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Please specify constructor invocation; classifier 'HTMLStyleElement' does not have a companion object
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
<caret>HTMLStyleElement
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Import" "true"
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
<caret>localStorage
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Import" "true"
|
||||
package some
|
||||
|
||||
fun testFun() {
|
||||
<caret>jq()
|
||||
}
|
||||
Reference in New Issue
Block a user