Commit Graph

369 Commits

Author SHA1 Message Date
Zalim Bashorov 444932d4c1 JS backend: fixed wrong NPE when casting to generic type. 2014-06-26 14:55:56 +04:00
Ilya Ryzhenkov 516bae17d7 StringBuilder builder and appendln 2014-06-24 23:49:15 +04:00
Zalim Bashorov 865880f196 Minor in JS backend: added missed test case -- when inside when w/o braces. 2014-06-18 23:18:23 +04:00
Michael Nedzelsky 209315baad JS backend: fix translation when statement -- now WhenTranslator returns JsBlock instead of hackish adding statements to context block.
It fixed the compiler crashing when translating `for`/`when`/`if` with `when` statement(KT-5234) and KT-5058.

 #KT-5234 fixed
 #EA-57346 fixed
 #KT-5058 fixed
2014-06-18 21:20:28 +04:00
Zalim Bashorov 399c9c1175 JS backend: fixed compiler crash when use compareTo in infix call.
#EA-54661 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov 898275e658 JS backend: added tests for infix calls.
#KT-3998   in progress
 #EA-56241 in progress
2014-05-08 19:57:28 +04:00
Zalim Bashorov d02e4bd1ec Minor in JS backend: added test for the overriding in data class. 2014-05-06 15:45:28 +04:00
Peter Rybin ab81d2e261 Supporting data class for JS backend 2014-05-06 15:45:28 +04:00
Alexander Udalov 42d167d17e Add missing copyrights across the project 2014-05-05 20:43:35 +04:00
Ilya Ryzhenkov d06b9abd4f Add platform independent part of Range tests to JS stdlib test run 2014-04-24 12:59:43 +04:00
Zalim Bashorov 23922c1387 Fixed line separators for fix maven build on Windows. 2014-04-16 20:33:42 +04:00
Svetlana Isakova f311da3f8f Supported invoke on expressions on js backend 2014-03-20 10:06:00 +04:00
Ilya Ryzhenkov 06873e9d09 Library paths updated after migration to new stdlib generators 2014-03-19 20:25:12 +04:00
Zalim Bashorov d728f6ba92 JS backend: using JetPsiFactory instead of JetFileUtils. Drop JetFileUtils. 2014-03-19 17:36:45 +04:00
Zalim Bashorov 71bfa51ab2 JS backend: fix access to class object members from containing class with implicit receiver.
#KT-4130 Fixed
2014-03-18 13:09:49 +04:00
Zalim Bashorov 8fd38e261f JS backend: fix access to enum entries by implicit receiver and explicit this. 2014-03-18 13:09:47 +04:00
Zalim Bashorov 7b503bbe6f Minor in JS backend: added regression tests.
#{KT-2219, KT-2470, KT-2507, KT-2222, KT-2995, KT-2221} Obsolete
2014-03-13 22:57:41 +04:00
Zalim Bashorov 206be96509 JS backend: added tests which pass an extension lambda to native code and visa versa.
Added workarounds in some tests because Rhino wrongly implicitly converts first parameter of `Function.call` to `Object`. But it's contradicts to ES5 specification(par. 15.3.4.4).

(#KT-4238, #KT-4345) In progress
2014-03-13 14:17:09 +04:00
Alexey Tsvetkov 21f87350b9 JS backend: added tests for KT-4159. 2014-03-12 19:01:55 +04:00
Zalim Bashorov 344ce6c095 JS backend: fixed name clash between public function w/o parameters and non-public function with same name. 2014-03-11 20:05:39 +04:00
Zalim Bashorov 43d9c383ff JS backend: don't use objects as definition place. 2014-03-11 20:04:05 +04:00
Zalim Bashorov fb7165c7fa JS backend: added regression tests for closure bugs.
#KT-4236 In Progress
#KT-4600 In Progress
#KT-4237 In Progress
#KT-4207 In Progress
#KT-4218 In Progress
#KT-4263 Obsolete
2014-03-11 20:04:03 +04:00
Zalim Bashorov a48dc25c46 JS backend: added more tests for closures. 2014-03-11 20:04:02 +04:00
Zalim Bashorov ec71a90394 JS backend : added test for local extension function. 2014-03-11 20:04:02 +04:00
Zalim Bashorov 14ed970dc3 JS backend: added the support extension functions as expression. 2014-03-11 20:04:02 +04:00
Zalim Bashorov 5f847bc7e7 JS backend: fixes after rename testFiles -> testData 2014-03-11 20:04:01 +04:00
Zalim Bashorov f5b1b4252d JS backend: use constants for default test package(foo) and default test function(box). 2014-03-11 20:03:58 +04:00
Zalim Bashorov 33360c2528 Dropped some TODOs
#KT-2564 Obsolete. Looks like, it's fixed in dcddd04.
2014-03-11 20:03:58 +04:00
Natalia Ukhorskaya d9d045cbb2 Fix line separators for windows in tests 2014-03-07 18:05:12 +04:00
Alexander Udalov 11cc7f46f4 Remove "Iterator.iterator()" intrinsic, add stdlib function 2014-03-02 19:55:24 +04:00
Zalim Bashorov 37154e42d2 JS backend: fixed smartcast when a call have implicit this or receiver. 2014-02-11 13:50:16 +04:00
Erokhin Stanislav 5d4cb1e065 JS backend: Fix safe call side effects 2014-02-06 14:01:11 +04:00
Erokhin Stanislav 75dd459bdf JS backend: Fix tracked used descriptors 2014-02-06 14:01:10 +04:00
Zalim Bashorov bdce3412e3 JS backend: add workaround for mangling Any methods(equals, hashCode and toString) always. 2014-02-06 12:21:12 +04:00
Zalim Bashorov bc273ddd75 JS backend: fixed using the stable mangling for extra cases. 2014-02-06 12:21:12 +04:00
Zalim Bashorov 2fe5f63924 JS backend: rename test mangling -> manglingStability. And make it independent of structure of generated code. 2014-02-06 12:21:12 +04:00
Zalim Bashorov 77277ce197 JS backend: removed the unnecessary main function from some tests. 2014-02-06 12:21:12 +04:00
Zalim Bashorov 5c0eeb59f6 JS backend: dropped unnecessary intrinsics in StringFIF. Added tests for CharSequence.size, CharSequence.length, CharSequence.length() and CharSequence.isEmpty(). 2014-02-03 13:31:24 +04:00
Zalim Bashorov 95084f9e0e Js stdlib: fixed the ArrayList implementation and added tests for indexOf, addAll, remove(by ref), removeAll, retainAll, containsAll. 2014-02-03 13:31:23 +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 15a727c6ed JS backend: dropped unnecessary tests which checked implementation details of kotlin js runtime. 2014-02-03 13:31:23 +04:00
Zalim Bashorov 0374ce96b7 JS backend: introduce the stable mangling for functions which belong to the public API or not final. 2014-02-03 13:31:22 +04:00
Zalim Bashorov fa552859be JS backend: introduce constants for default test package(foo) and default test function(box). 2014-02-03 13:31:22 +04:00
Zalim Bashorov 5d94c7e83c JS backend: fix closure this in extension (literal) function. 2014-02-03 13:31:22 +04:00
Zalim Bashorov ca4d347658 JS backend: minor -- move test for KT-2388 to ClosureTest. 2014-02-03 13:31:22 +04:00
Zalim Bashorov c77a1b0fb9 JS backend: fix recursive closure local function by inner function or lambda.
#KT-4257 fixed
2014-02-03 13:31:21 +04:00
Andrey Breslav 210827b1d5 ExceptionUtils rewritten in Kotlin 2014-01-30 21:03:53 +04:00
Erokhin Stanislav 93982265a6 Add js.dart-ast module & drop old lib 2014-01-27 17:28:49 +04:00
Evgeny Gerashchenko 41f61c22e5 Fixed file name case (to fix tests on Linux). 2014-01-14 22:38:12 +04:00
Evgeny Gerashchenko ad44860604 Fixed file name case (to fix tests on Linux). 2014-01-14 22:11:32 +04:00