Rewrite ArrayList, AbstractList, AbstractCollection in kotlin.

AbstractList is imported from GWT.
#KT-12386
This commit is contained in:
Ilya Gorbunov
2016-08-19 22:18:32 +03:00
parent 0abf94c2f4
commit 75069143c7
17 changed files with 535 additions and 418 deletions
@@ -17,8 +17,7 @@
package test.collections
import org.junit.Test
import java.util.ArrayList
import java.util.LinkedHashSet
import java.util.*
import kotlin.test.*
fun <T> iterableOf(vararg items: T): Iterable<T> = Iterable { items.iterator() }
+17 -1
View File
@@ -1,8 +1,24 @@
/*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.collections.js
import org.junit.Test as test
import kotlin.test.*
import java.util.ArrayList;
import java.util.*
class JsArrayTest {
+1 -2
View File
@@ -4,8 +4,7 @@ import kotlin.test.*
import org.junit.Test
import test.collections.*
import test.collections.behaviors.*
import java.util.HashSet
import java.util.LinkedHashSet
import java.util.*
class ComplexSetJsTest : SetJsTest() {
// Helper function with generic parameter to force to use ComlpexHashMap