JS: add tests for quickfix: autoimport for Kotlin/Javascript projects

This commit is contained in:
Michael Nedzelsky
2015-03-31 15:06:08 +03:00
parent 53ef521a8f
commit 15ebab4f7e
9 changed files with 90 additions and 8 deletions
@@ -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()
}