JS backend: minor -- move test for KT-2388 to ClosureTest.
This commit is contained in:
@@ -68,4 +68,8 @@ public final class ClosureTest extends SingleFileTranslationTest {
|
||||
public void igonre_testClosureLocalFunctionByInnerFunctionInConstrunctor() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testClosureThisInConstructor() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,10 +81,6 @@ public final class NativeInteropTest extends SingleFileTranslationTest {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testKt_2388() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testKt2323() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
+2
-4
@@ -1,8 +1,6 @@
|
||||
// KT-2388
|
||||
package foo
|
||||
|
||||
native
|
||||
fun _setTimeout(callback:()->Unit):Unit = noImpl
|
||||
|
||||
var done = false
|
||||
|
||||
object foo {
|
||||
@@ -15,6 +13,6 @@ object foo {
|
||||
}
|
||||
|
||||
fun box(): Boolean {
|
||||
_setTimeout(foo.callbackWrapper)
|
||||
foo.callbackWrapper()
|
||||
return foo.timeoutId == -1 as Long
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2013 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.
|
||||
*/
|
||||
|
||||
function _setTimeout(callback) {
|
||||
callback.call({});
|
||||
}
|
||||
Reference in New Issue
Block a user