Commit Graph

48 Commits

Author SHA1 Message Date
Ilya Gorbunov f3a19ebe11 StdLib deprecations cleanup: length, size, indices and other collection operations. 2015-06-29 17:06:20 +03:00
Ilya Gorbunov 00a44f6d4f StdLib deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray. 2015-06-29 17:05:57 +03:00
Ilya Gorbunov 4fd1b46e91 Refactor JS tests: unified package name, test JS specific map implementations only in JS.
Add required files to build StdLibTestToJSTest.
Remove tests StdLibMapJsTest and StdLibSetJsTest because they are tested elsewhere.
2015-05-24 05:07:01 +03:00
Sergey Mashkov a11e0a84b5 JS tests for addClass, removeClass, removeFromParent 2015-05-14 09:16:56 +03:00
Sergey Mashkov 4ee780ef07 JS move document/window/storage to kotlin.browser 2015-05-14 09:16:51 +03:00
Sergey Mashkov 33c1d5d2cf JS fix tests failed due to api change 2015-05-14 09:16:50 +03:00
Ilya Gorbunov be11394adf Rename copyToArray() to toTypedArray(). 2015-04-21 21:27:28 +03:00
Ilya Gorbunov 5eb3c0bb5e Rename *array() factory methods to *arrayOf(). 2015-04-21 21:27:26 +03:00
Stanislav Erokhin b703f59e04 Migrate kotlin sources, maven projects and stdlib to new lambda syntax 2015-04-07 13:08:53 +03:00
Ilya Ryzhenkov 4ee64d7283 Covering stdlib with tests. 2015-01-20 22:37:16 +03:00
Zalim Bashorov 51724e4b0d Drop some obsolete TODOs in MapJsTest 2014-12-26 14:20:21 +03:00
Zalim Bashorov 7579471859 JS stdlib: fixed Set::equals. 2014-12-23 20:01:21 +03:00
Andrey Breslav 5a7aa65d53 Failing tests temporarily disabled 2014-12-23 15:18:47 +03:00
Andrey Breslav 6728a384e4 KT-4881 Annotation resolved to package should be compile-time error
#KT-4881 Fixed
2014-12-23 15:18:47 +03:00
Ilya Ryzhenkov be717f48f8 Stop using deprecated APIs 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov fa0542b801 Clean size/length/first/head/empty properties and functions. 2014-12-16 17:33:21 +03:00
Michael Nedzelsky 2db1d128a0 JS backend: add ArrayList(Collection) into javautilCode.kt 2014-10-07 08:37:01 +04:00
Zalim Bashorov 14ab3c4de1 JS stdlib: allowed use null as key and value in Map implementations. Added tests for using null in Set and Map implementations. 2014-07-16 21:35:11 +04:00
Zalim Bashorov 28228d23b1 JS stdlib: added missed constructors for HashSet, LinkedHashSet, HashMap and LinkedHashMap. 2014-06-26 16:33:14 +04:00
Zalim Bashorov 79b7b1c447 JS stdlib: added test for using special names(i.e. Object.prototype members) in Maps and Sets. Fixed the support special names in PrimitiveHashMap. 2014-06-20 16:42:43 +04:00
Zalim Bashorov 6f5c88c21f JS stdlib: added LinkedHashMap abd LinkedHashSet. 2014-06-20 16:42:43 +04:00
Zalim Bashorov a2584dc6d7 JS backend: added entrySet to HashMap implementations and fixed iteration over maps. 2014-06-20 16:42:43 +04:00
Ilya Ryzhenkov f471f7901c Migrate to using join* functions instead of deprecated. 2014-06-10 11:11:02 +04:00
Zalim Bashorov 96d5a1d0e6 JS backend: test both versions of Map(Complex and Primitive) 2014-04-02 17:50:40 +04:00
Zalim Bashorov 336ff43b26 JS backend: - test both versions of Set(Complex and Primitive)
- added size in PrimitiveSet
 - fixed contains in PrimitiveSet

 #KT-4796 fixed
2014-04-02 17:50:40 +04:00
Ilya Ryzhenkov e37d8174c3 New stdlib generators 2014-03-19 20:25:11 +04:00
Zalim Bashorov edb930fd76 JS stdlib: added missed tests for Set and fixed HashSet implementations. Implemented Set::iterator, AbstractCollection::removeAll, AbstractCollection::retainAll, AbstractCollection::containsAll.
#KT-4390 fixed
2014-02-03 13:31:23 +04:00
Zalim Bashorov ceab4347ec JS stdlib: added missed tests for Map and fix HashMap implementation. 2014-02-03 13:31:23 +04:00
Evgeny Gerashchenko 2ae1a2c81b Added copyToArray intrinsic method.
#KT-3352 fixed
2013-10-01 15:11:30 +04:00
Zalim Bashorov 9d1e319f0f JS backend: implemented PrimitiveHashMap#putAll. 2013-06-22 01:34:38 +04:00
Evgeny Gerashchenko 5ccbce6de6 Got rid of "tuple" word all over the code. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko 655f9e01a2 Renamed tuples from other code. 2013-03-22 16:37:16 +04:00
Zalim Bashorov 322d35ac2f Added some tests for JS implementation of HashMap
Fixed JS implementation of HashMap#putAll
2013-03-12 21:09:33 +04:00
Zalim Bashorov 220682afe2 fixed mapping sort and max functions from java.util.Collections 2013-03-06 19:16:14 +04:00
Zalim Bashorov dd7d584478 Added some tests for JS implementation of HashMap#values() (#KT-3035) 2013-03-06 19:16:14 +04:00
Andrey Breslav 89fd0526cf TupleN classes and their usages replaced by Pair and Triple
(KT-2358 Drop tuples)

 #KT-2358 In Progress
2012-09-07 21:26:42 +04:00
James Strachan ecbd4daefb avoid unnecessary verbose type parameters now the type inferencer is better 2012-08-17 09:44:52 +01:00
James Strachan fbee1a8135 renamed to avoid confusion with other MapTest in QUnit 2012-07-20 07:15:43 +01:00
James Strachan 33ef414f01 added tests so we can easily run QUnit tests in headless mode inside a stand alone JUnit test without Selenium; with just Rhino. JsArrayTest works great in Rhino stand alone and in a browser; but not Selenium; not sure why yet... 2012-07-05 21:40:06 +01:00
James Strachan b4dace2c29 added a native array() function for the JS generation; also refactored the code generated collection APIs so that most of them can be used with JavaScript and included more array based APIs into the JS generation 2012-07-05 15:49:10 +01:00
James Strachan bea649bf87 enabled the unit testing of a subset of the standard library JUnit test cases with the compiled JavaScript versions and running them in QUnit in a JUnit test case 2012-07-05 14:51:28 +01:00
James Strachan ffffe84fcb added more working DOM test cases for JS 2012-07-03 19:54:32 +01:00
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
James Strachan baa67175ce fixed broken test case 2012-06-13 16:16:45 +01:00
James Strachan 3765e85ca8 compile the assertions and a test case to QUnit on JS and got a working example to run the unit test case - yay! 2012-06-13 16:14:13 +01:00
James Strachan 768469fb23 added support for generation of QUnit unit tests from Kotlin JUnit test cases 2012-06-12 12:48:14 +01:00
pTalanov 39dc1a1cb8 revert 9f0fcc280b 2012-06-01 19:14:00 +04:00
James Strachan 9f0fcc280b added support for generation of QUnit unit tests from Kotlin JUnit test cases 2012-06-01 15:25:35 +01:00