Denis Zharkov
35783f129b
Generate INSTANCEOF barrier in bridges for Collection.contains
2015-10-09 14:40:33 +03:00
Ilya Gorbunov
80e4ba8712
Replace splitBy with split
2015-10-07 22:36:27 +03:00
Ilya Gorbunov
25df3aac11
Replace parent with parentFile, relativePath with relativeTo
2015-10-07 22:36:25 +03:00
Ilya Gorbunov
3106458cc4
Replace assert with lazy assert, times with repeat.
2015-10-07 22:36:23 +03:00
Denis Zharkov
252c82abe3
Generate bridges for FAKE_OVERRIDE properties
...
The same way it's done for function, just call generateBridges for accessors
#KT-9442 Fixed
2015-10-07 08:46:34 +03:00
Denis Zharkov
3f6cadf9b7
Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
...
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Zalim Bashorov
98867addc9
Regenerate tests for JS reserved words
2015-09-22 15:00:38 +02:00
Mikhail Glukhikh
028e0ec59a
"field": JS translation
2015-09-21 15:47:57 +03:00
Zalim Bashorov
7036b36a94
Minor: replace some usages of (old) package facade with new package parts
2015-09-10 18:49:11 +03:00
Ilya Gorbunov
4f9e2c24d1
Exclude common file asserts.kt from tests using StdLib, as its methods conflict with kotlin.test.* methods.
2015-09-08 10:26:54 +03:00
Ilya Gorbunov
e61d202d71
Dropped test that tested nothing: there were no files to compile, except common asserts.kt
2015-09-08 10:26:39 +03:00
Ilya Gorbunov
63110dcdf8
Remove StdLibArraysTest and include collections/ArraysTest.kt into StdLibTestToJSTest smoke tests instead.
...
Move helper methods, so they are available in JS semantics tests.
2015-08-27 00:09:04 +03:00
Pavel V. Talanov
add8387141
Fix some problems with jsCode function
...
1. Fix a bug in frontend when passing non-String constant led to exception
2. Fix a bug in backend when passing non-JetStringTeplate string constant led to exception
3. Avoid recomputing constant argument in backend
2015-07-21 20:52:42 +03:00
Zalim Bashorov
f7ccb3819e
JS: don't pollute object with $metadata$
...
#KT-8126 Fixed
2015-07-13 15:52:57 +03:00
Alexander Udalov
c3b97e0668
Simplify function hierarchy in reflection
...
Get rid of all classes except kotlin.reflect.KFunction, which will be used to
represent all kinds of simple functions.
Lots of changes to test data are related to the fact that KFunction is not an
extension function (as opposed to KMemberFunction and KExtensionFunction who
were) and so a member or an extension function reference now requires all
arguments be passed to it in the parentheses, including receivers. This is
probably temporary until we support calling any function both as a free
function and as an extension. In JS, functions and extension functions are not
interchangeable, so tests on this behavior are removed until this is supported
2015-07-10 20:10:08 +03:00
Alexander Udalov
1a3209e1dc
Drop traits with required classes
...
#KT-4771 Rejected
2015-06-17 16:23:58 +03:00
Zalim Bashorov
289efb8984
JS backend: don't fail when invoke call got extension receiver implicitly
...
#EA-67456 Fixed
2015-06-17 11:17:08 +03:00
Zalim Bashorov
65adc3ac02
JS backend: don't use octal numbers when render non-latin symbols, because of it prohibited in strict mode
...
#KT-7921 Fixed
2015-06-17 11:17:08 +03:00
Zalim Bashorov
9d32f5e8ed
Minor in JS backend tests: use checkFooBoxIsOk instead of fooBoxIsValue
2015-06-03 23:09:17 +03:00
Zalim Bashorov
92457543bc
JS backend: fix equality check for nullable types
...
* Generate simple check when compare with `null` literal.
* Use Kotlin.equals if type of receiver or argument is nullable.
* Don't call equals method if any of receiver or argument is null (at runtime, not only literal). For more information see KT-4356.
#KT-7530 fixed
#KT-7916 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov
6aaccae6a9
JS backend: compare enum entries strictly
...
#KT-7840 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov
4f0a858e93
JS backend: fix tests after move testTrue and testFalse to common place
2015-06-03 23:09:16 +03:00
Zalim Bashorov
ca4ce48801
JS backend: fix compiler crash on for with empty body
2015-06-03 23:09:15 +03:00
Zalim Bashorov
f90df7aa35
JS backend: fix compiler crash on empty then if block
...
#EA-68941 fixed
2015-06-03 23:09:15 +03:00
Zalim Bashorov
79b5652ce6
JS backend: added test which check that name of classes not mangled when we have a function with the same name in non-public API
2015-06-03 23:09:15 +03:00
Zalim Bashorov
33fb3fb6e4
JS backend: support secondary constructors in native classes
2015-06-03 23:09:15 +03:00
Zalim Bashorov
f1d37572c8
JS backend: fix missed variable declarations for tmps in class primary/default constructor
...
#KT-7864 Fixed
2015-05-29 20:09:46 +03:00
Zalim Bashorov
3fe363e72b
Minor: split test to access to companion and to nested object
2015-05-28 10:25:11 +03:00
Zalim Bashorov
dc1b91eacd
JS: prepare tests for secondary constructors
2015-05-28 10:24:48 +03:00
Alexey Tsvetkov
bd934bc3c4
Minor in JS: fixed typo in file name (abstarct->abstract)
2015-05-25 20:20:26 +03:00
Alexey Tsvetkov
fc1a1f742b
JS test: added multi-module inline tests
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
115798f584
JS test: check directives in MultipleModulesTranslationTest
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
f214c4eac7
JS test: use common dependencies.txt for MultipleModulesTranslationTest
2015-05-25 20:20:25 +03:00
Ilya Gorbunov
4fd1b46e91
Refactor JS tests: unified package name, test JS specific map implementations only in JS.
...
Add required files to build StdLibTestToJSTest.
Remove tests StdLibMapJsTest and StdLibSetJsTest because they are tested elsewhere.
2015-05-24 05:07:01 +03:00
Michael Nedzelsky
bfc641caba
JS: fix tests for -meta-info
2015-05-21 02:30:57 +03:00
Alexey Tsvetkov
818b197169
JS: support reified usage in extension functions
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
79ab47d374
JS: support reified type references in closures
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
8cdff2439b
JS: added reified is-check test cases
2015-05-13 12:15:29 +03:00
Ilya Gorbunov
18f3018ce7
js.stdlib: js-only tests now included in kotlin-js-tests module.
2015-05-09 01:10:47 +03:00
Alexey Tsvetkov
68603d188b
JS: ExpressionDecomposer should always visit JsInvocation qualifier
2015-05-06 18:19:21 +03:00
Alexey Tsvetkov
8db104ef36
JS: decomposition should preserve 'this' context with invocations
...
#KT-7502 fixed
2015-05-06 18:19:21 +03:00
Dmitry Jemerov
702188bbe2
regenerate JS reserved words test
2015-04-29 16:50:22 +02:00
Alexey Tsvetkov
764c506aaa
JS: do not generate break for top level return during inline
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
cbdfaeb998
Minor in JS: store js test directives in a list
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
bced28ee41
Minor in JS: simplify count vars directive
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
900147385d
JS: do not alias 'this' literal in a receiver position
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
6b09b4c2b6
JS: do not create variable for result, if inline call is only return subexpression
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
ea41bc4231
JS: do not create variable for result, if inline function has one top level return
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
c9b24510bb
JS: do not create var for result if statement is 'someVar = inlineCall()'
2015-04-24 18:19:33 +03:00
Alexey Tsvetkov
fd09d4d837
Minor in JS: moved test for additional vars during inline to separate directory
2015-04-24 18:19:33 +03:00