Just refactor tests that require further investigation

This commit is contained in:
Ilya Gorbunov
2016-11-17 02:14:52 +03:00
parent 62fe89b536
commit 49756a897e
7 changed files with 11 additions and 21 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
// TODO: Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS
import java.util.HashMap
import java.io.*
// fails on JS with TypeError: imported$plus is not a function, it is undefined.
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = put(key, value)
@@ -1,10 +1,9 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// on JS item local variable clashes with ListTag.item() extension function
package d
import java.util.ArrayList
fun box(): String {
ListTag().test(listOf("a", "b"))
return "OK"
+1 -3
View File
@@ -1,9 +1,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import java.util.HashSet
val NAN = java.lang.Double.NaN
val NAN = Double.NaN
data class A(val x: Double)
+1 -3
View File
@@ -1,9 +1,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import java.util.HashSet
val NAN = java.lang.Float.NaN
val NAN = Float.NaN
data class A(val x: Float)
+2 -4
View File
@@ -1,15 +1,13 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// not sure if it's ok to change Object to Any
// WITH_RUNTIME
package test.regressions.kt1172
import kotlin.concurrent.*
import java.util.*
public fun scheduleRefresh(vararg files : Object) {
java.util.ArrayList<Object>(files.map{ it })
ArrayList<Object>(files.map { it })
}
fun box(): String {
+4 -5
View File
@@ -1,15 +1,14 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// missing isArrayOf on JS
// WITH_RUNTIME
import java.util.Arrays
fun box(): String {
val array = Arrays.asList(2, 3, 9).toTypedArray()
if (!array.isArrayOf<Int>()) return array.javaClass.toString()
val array = listOf(2, 3, 9).toTypedArray()
if (!array.isArrayOf<Int>()) return "fail: is not Array<Int>"
val str = Arrays.toString(array)
val str = array.contentToString()
if (str != "[2, 3, 9]") return str
return "OK"
+1 -2
View File
@@ -1,7 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import java.util.ArrayList
// on JS Parser.parse and MultiParser.parse clash in ProjectInfoJsonParser
class JsonObject {
}