7458 Commits

Author SHA1 Message Date
Pavel V. Talanov 7a22ad099a Fix formatting in some of test data files.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-10 14:06:23 +04:00
Pavel V. Talanov 12d9b25189 Inline useless temp var in ForTranslator.
Also fix formatting.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-10 14:02:34 +04:00
Pavel V. Talanov 25234254fe Hack to make tests path in IteratorForTranslator.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-09 19:26:12 +04:00
Pavel V. Talanov 6300220983 Changes to kotlin lib js.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-09 19:25:18 +04:00
Pavel V. Talanov 4c316011db Optimize temporary variable declarations in dynamic context, also introduce some hacky apis.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-09 19:23:19 +04:00
Evgeny Gerashchenko 561e2e14d0 Added PrimitiveType.NUMBER_TYPES constant. Used it in JVM and JS backends. 2012-08-09 15:13:41 +04:00
Evgeny Gerashchenko 4f68b926fb Fixed RangeTest. 2012-08-08 15:37:58 +04:00
Evgeny Gerashchenko b1fa44aa4d Removed upto() and downto() member functions from number types
#KT-2519 fixed
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko a4031225d0 Changed usages of upto/downto in test to rangeTo and downTo, respectively.
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko e14a612699 Removed downto cases from JS backend tests (to be restored, see KT-2586) 2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko 3dfb510a62 Regenerated JavaScript stubs. 2012-08-08 14:48:03 +04:00
Pavel V. Talanov 0c6308545b Correct code in WhenTranslator using the new ast. 2012-08-08 13:36:19 +04:00
Pavel V. Talanov 1165f2c502 Extract js-test-libs into separate project library. 2012-08-08 13:06:03 +04:00
Pavel V. Talanov 0776892b3c Fix for a problem which sometimes caused environment to be broken when tests using JsUnitTestBase fail. 2012-08-08 13:05:15 +04:00
Pavel V. Talanov 5b2469227e Additional logic in static context related to modules. Hacky fix for nameclashes when inheriting descriptors.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-07 15:05:26 +04:00
Pavel V. Talanov 0a92843245 Use other version of JS ast by develar: migrate code to using new ast.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-07 13:38:34 +04:00
Pavel V. Talanov 17b85cbeed Use other version of JS ast by develar: changes to jars and xmls.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-07 13:35:46 +04:00
Pavel V. Talanov fa513ce976 Fix accidental usage of closurecompiler's internal implementation of guava.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b by develar.
2012-08-07 13:34:43 +04:00
Pavel V. Talanov 3f2e1bc1ce Move TEST_MODULE_NAME to Config and rename to REWRITABLE_MODULE_NAME. 2012-08-03 16:35:18 +04:00
Pavel V. Talanov 0f8113b345 Adopt tests for classes and nameclashes from codegen. 2012-08-01 16:26:08 +04:00
Pavel V. Talanov b883bf6ef5 Adopt more tests for functions from codegen tests.
Create test for KT-2565.
2012-07-31 18:51:13 +04:00
Pavel V. Talanov 0710efdc16 Add tests for newly discovered issue with ECMA5 and top level vars in root scope. 2012-07-31 18:51:12 +04:00
Evgeny Gerashchenko 9a5fc78b85 Removed factory methods from JetCoreEnvironment since they only invoke constuctor. 2012-07-31 16:33:45 +04:00
Pavel V. Talanov 957a494c53 Adapt some tests from codegen for k2js translator.
Tests for default arguments.
2012-07-31 13:18:25 +04:00
Pavel V. Talanov 49e51220d7 Correct equals for tuples. 2012-07-31 13:18:24 +04:00
Pavel V. Talanov e0ff877b47 Fix for a bug that caused invalid code generated for calling extension from another extension. 2012-07-31 13:18:24 +04:00
Pavel V. Talanov dad946b58d Revert changes to ClassPathLibrary*
Cosmetics also.
2012-07-30 15:50:19 +04:00
Pavel V. Talanov e291c30f82 Refactoring. Cosmetics.
Access level. Final modifiers. Unused parameters... etc.
2012-07-27 20:29:40 +04:00
Pavel V. Talanov 40c14c6533 Refactoring.
Dead code elimination. Missing annotations.
2012-07-27 20:29:40 +04:00
Pavel V. Talanov f37fae6e29 KT-2310: js: !! translated incorrectly (syntax ok, but logic not).
#KT-2310 Fixed
2012-07-27 18:00:03 +04:00
Pavel V. Talanov 04d9b4685b KT-2177: object literal as initializer value for class/object property — undefined variable generated.
Just test.

 #KT-2177 Fixed
2012-07-27 17:36:11 +04:00
Pavel V. Talanov b234294863 Better message for long constants. 2012-07-27 17:36:11 +04:00
James Strachan eeb2e024ad added a test case for KT-2507 2012-07-25 04:57:10 -04:00
James Strachan 2cf411eaea added a test case for KT-2515 2012-07-25 04:05:28 -04:00
James Strachan 7d0b03de76 added the dom events API to the kotlin standard library and get it compiling as JS too (not unit tested yet mind you ;) 2012-07-25 02:57:53 +01:00
James Strachan 0ccc0de2fe add support for java.util.Date for both JVM and JS back ends (we could maybe introduce a kotlin.Date pseudo type one day) 2012-07-25 02:57:53 +01:00
James Strachan 6fd3cd0bf0 added support for java.io.Closeable as a standard interface 2012-07-24 11:28:19 +01:00
James Strachan b25c27bfed added first cut of the DOM events API (its not all compiling to JS yet though due to Class<T> not being supported) 2012-07-24 11:10:50 +01:00
Pavel V. Talanov 7de982ba2f Fix for converting negative floating point to integer values. 2012-07-23 19:50:47 +04:00
Pavel V. Talanov 3ce9022f6b KT-2342: Type mismatch on Int division.
# KT-2342 Fixed
2012-07-23 19:50:47 +04:00
Pavel V. Talanov 39edcda317 KT-2227 Call to toString missing when interpolating string literal.
Test only.

 #KT-2227
2012-07-20 18:57:37 +04:00
Pavel V. Talanov d3933bcc3f KT-2370: foo.equals(bar) doesn't compile in JS.
Only test.

  #KT-2370
2012-07-20 18:50:32 +04:00
Pavel V. Talanov 0b4499a4b7 For with Int#downto, Int#upto do not iterate on empty ranges. 2012-07-20 14:18:41 +04:00
Pavel V. Talanov 8eb0fb31ca Int#downto 2012-07-20 14:18:40 +04:00
Pavel V. Talanov ad94786555 Int#upto 2012-07-20 14:18:39 +04:00
James Strachan 22f24906dd fixed build 2012-07-20 08:33:33 +01:00
James Strachan 0bcb14e6da added a contributing section 2012-07-20 09:29:54 +02:00
James Strachan 9784e2a768 fixed build 2012-07-20 08:24:13 +01:00
James Strachan 3ef4ff690c avoid failure on equals() call passing in null/undefined and updated the issues for failing JS unit tests 2012-07-20 07:14:20 +01:00
James Strachan 91c03f0d90 added AbstractCollection base class and equals/toString to HashSet 2012-07-19 21:37:39 +01:00