Commit Graph

31 Commits

Author SHA1 Message Date
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