Commit Graph

55 Commits

Author SHA1 Message Date
Svetlana Isakova e622be8a2d changed js tests/library after collections mapping 2012-09-05 18:55:17 +04:00
Svetlana Isakova a3194e9a46 removed unnecessary import jet.Iterator 2012-09-05 18:55:16 +04:00
Pavel V. Talanov 04da2f453a Test for KT-2281.
#KT-2281 fixed
2012-08-31 14:35:54 +04:00
James Strachan cbde1e1e46 added a little test case to see if using $ variables works in kotlin for JS generation (e.g. for angularjs support) 2012-08-22 16:17:40 +01:00
Pavel V. Talanov 52a933e179 Iterating over iterator. 2012-08-16 20:24:57 +04:00
Svetlana Isakova ec556e2abc val hasNext changed to fun in test 2012-08-16 18:39:24 +04:00
Pavel V. Talanov 6febebc7b3 Tests: drop EcmaVersions usage, add test inheritFromJetIterator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:39 +04:00
Pavel V. Talanov 0a002bcc53 Test for calling functions in initializers.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:38 +04:00
Pavel V. Talanov d734cbb5b5 Enhanced test data: KT-1361-1, toArray.kt, objectDeclaration.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:37 +04:00
Pavel V. Talanov c48e1d6319 Tests: added package declaration in hexademicalConstant, enclosingThis tests. 2012-08-14 12:44:36 +04:00
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 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
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
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
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 ad94786555 Int#upto 2012-07-20 14:18:39 +04:00
Pavel V. Talanov b45c14b0ab Explicit equals method for primitives and correct global equals method.
Includes cosmetics.
#KT-2372 Fixed
2012-07-18 17:15:27 +04:00
Pavel V. Talanov 3d58d1ec16 Explicit equals call on non nullable receiver 2012-07-09 13:09:47 +04:00
James Strachan 96a7128a36 added test case for KT-2374 2012-07-06 08:34:35 +01:00
James Strachan 6863526d52 added test case for KT-2372 2012-07-05 14:16:20 +01:00
Pavel V. Talanov 6354d1bae0 Custom equals operator (includes little patch to frontend)
#KT-2354 fixed
2012-07-05 16:25:33 +04:00
James Strachan af4cdb38df removed bogus test case for KT-2355 which isn't an issue any more 2012-07-05 12:07:36 +01:00
James Strachan 3068af7324 test case for KT-2356 2012-07-03 14:29:47 +01:00
James Strachan b9ffce68e4 added test case for KT-2355 2012-07-03 13:57:21 +01:00
James Strachan 25bf753369 added test case for KT-2354 2012-07-03 13:55:49 +01:00
Pavel V. Talanov 4b15023aec Turn off inlining. May be it'll help with KT-2314. 2012-07-02 17:29:10 +04:00
pTalanov 3bb14ecd7f Add toString call when interpolating strings 2012-06-15 18:19:10 +04:00
pTalanov 1937823a77 Test for evaluating properties lazily 2012-06-05 21:56:32 +04:00
Pavel V. Talanov f67aaa49b7 Include test file accidentally omitted by previous commit 2012-05-24 17:37:21 +04:00
Pavel Talanov 0fc64bb6c2 First stab at !! operator 2012-05-24 16:40:17 +04:00
pTalanov 1896f7250f Refactor js.tests
Use Test#getName where possible
2012-05-05 20:37:02 +04:00
pTalanov 29f224b81f EA - 35896 Case when property accessors are declared but only access level is specified 2012-05-05 19:36:22 +04:00
pTalanov c1e4b20e38 KT-1747 Can't have main function in nested namespaces
#KT-1747 Fixed
2012-05-05 18:55:19 +04:00
pTalanov ea6076f638 KT-1865 Calls with default argument values are generated incorrectly
#KT-1865 Fixed
2012-05-05 16:51:48 +04:00
pTalanov 68680f702b Fix a bug which caused incorrectly generated js when you call extension literal from extension function. 2012-05-05 16:51:48 +04:00
Pavel V. Talanov fc683e8141 Support for elvis operator. 2012-04-02 20:46:03 +04:00
Alex Tkachman ffbce7fe1e KT-1589: Array<T>(size) renamed to arrayOfNulls 2012-04-02 14:30:37 +03:00
Pavel V. Talanov 36e242a9e6 Add test for uncovered case. 2012-03-30 13:28:04 +04:00
Pavel V. Talanov 090fd1b7f6 Fixes for cases where unexpected declaration descriptor hierarchy caused invalid scoping structure in js backend.
Minor refactorings.
2012-03-19 13:45:22 +04:00
pTalanov ad49ac158d Some solution for the case when a property which is a function is called. 2012-03-19 13:45:20 +04:00
pTalanov b3e306ac32 KT-740
Turn on KT-740-3.kt test.
Fix a typo.
2012-03-14 13:19:00 +04:00
pTalanov af690fb02a KT-817 Wrong code on prefix increment operators. 2012-03-14 13:18:59 +04:00
pTalanov 15437cbbf6 KT-1361: "this" is not treated correctly when object is created. 2012-03-13 15:50:07 +04:00
pTalanov d69988382b KT-1052: Infix calls do not work. 2012-03-13 13:48:53 +04:00
unknown 26a5ff3a2f Add disabled test. Depends on KT-1198 2012-03-09 19:22:14 +04:00
unknown beff2f9b1e KT-740: Make sure that assign and increment operations compute receiver only once:
- Array operations.
2012-03-09 19:22:13 +04:00
unknown 295b38bf32 KT-740: Make sure that assign and increment operations compute receiver only once:
- Increment operation on property.
2012-03-09 19:22:12 +04:00