Fix tests failing after stdlib generation refactoring

This commit is contained in:
Maxim Shafirov
2013-02-12 22:05:54 +04:00
parent 24d99eb33f
commit 15446e98b8
6 changed files with 32 additions and 19 deletions
+3
View File
@@ -6,6 +6,9 @@ import js.library
library
open public class Exception(message: String? = null) : Throwable() {}
library
open public class RuntimeException(message: String? = null) : Exception(message) {}
library("splitString")
public fun String.split(regex : String) : Array<String> = js.noImpl
+15 -3
View File
@@ -56,7 +56,7 @@ public abstract class AbstractList<E>(): AbstractCollection<E>(), MutableList<E>
}
library
public open class ArrayList<E>() : AbstractList<E>() {
public open class ArrayList<E>(capacity:Int=0) : AbstractList<E>() {
}
library
@@ -64,7 +64,19 @@ public open class HashSet<E>(): AbstractCollection<E>(), MutableSet<E> {
}
library
public open class HashMap<K, V>() : MutableMap<K, V> {
public trait SortedSet<E> : Set<E> {
}
library
public open class TreeSet<E>() : AbstractCollection<E>(), MutableSet<E>, SortedSet<E> {
}
library
public open class LinkedHashSet<E>(): AbstractCollection<E>(), MutableSet<E> {
}
library
public open class HashMap<K, V>(capacity:Int=0) : MutableMap<K, V> {
public override fun size() : Int = js.noImpl
public override fun isEmpty() : Boolean = js.noImpl
public override fun get(key : Any?) : V? = js.noImpl
@@ -110,4 +122,4 @@ public trait Enumeration<E> {
native
public class Date() {
public fun getTime() : Int = js.noImpl
}
}