Commit Graph

74 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 958f7c862d Got rid of "namespace" word in test data. 2014-01-14 18:06:50 +04:00
Erokhin Stanislav 53abc956cc JS backend: add simple test connected with frontend bug 'isStatement' for function body == 'hasBlockBody' 2013-10-08 14:37:24 +04:00
Evgeny Gerashchenko eb5455e89f Got rid of "jet" file extension. 2013-10-01 19:32:38 +04:00
develar 67592829b6 JS backend: translate labeled for expressions.
#KT-2986 fixed

(cherry picked from commit b0836a6)
2013-09-20 17:21:13 +04:00
develar e39943f9bd JS backend: report expression location on error in StringTemplateTranslator.
(cherry picked from commit a2765d3)
2013-08-29 21:45:27 +04:00
develar 4f9485b40e JS backend: fixed bug when explicitly use invoke method in function literal call.
(cherry picked from commit f832cee)
2013-08-29 21:45:27 +04:00
develar 92e76d18d9 JS backend: change name mangling -- right now before indexing we sort functions by Visibility and Modality.
(cherry picked from commit 7620a07)
2013-08-29 21:45:26 +04:00
develar 92eb4a5f1f JS backend: fixed wrong behavior when using nullable type in string template.
(cherry picked from commit 3a16e95)
2013-08-29 21:20:08 +04:00
Zalim Bashorov 596e0b0acc JS backend: cleanup -- drop NUL symbols 2013-08-29 21:20:08 +04:00
Erokhin Stanislav 3b5d5a4a95 JS backend: added identityEquals support. 2013-08-12 21:48:18 +04:00
develar 995f898116 JS backend: added String.isEmpty
(cherry picked from commit 6cf1761)
2013-08-09 14:29:52 +04:00
develar 7c18ab3ca8 JS backend: cleanup strings code.
Added String.size and String.length().
2013-08-09 14:29:52 +04:00
Zalim Bashorov 9b09d5f6df JS backend: fixed String.split for the case when using regexp.
Added(overload) String.split with limit parameter.
2013-08-09 14:29:51 +04:00
develar 2419fc36ed JS backend: partial fix for #KT-2670 -- throw NPE when unsafe cast null value to not nullable type. 2013-07-23 19:10:54 +04:00
Zalim Bashorov c5f53df70d JS backend: fixed wrong result when compare null and undefined using Kotlin.equals. 2013-07-18 16:04:42 +04:00
Zalim Bashorov ee5c7c8f5c Added support spread operator in JS-Backend. 2013-06-15 00:52:02 +04:00
Zalim Bashorov 2bae647412 Make nullable check less verbose in JS-backend.
For check what variable is equal null or undefined enough to compare with null (or undefined).
See ECMAScript specification 11.9.1, 11.9.2, 11.9.3
2013-06-15 00:52:02 +04:00
Evgeny Gerashchenko b9e5704057 Updated test data and stdlib sources. 2013-02-13 18:08:37 +04:00
pTalanov 5bc4fc458a Don't call redundant toString for variables of type Int
Refactor StringTemplateTranslator a little
2012-10-01 21:15:13 +04:00
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