Michael Nedzelsky
9f0f930e26
JS backend: tests for KT-6323 KotlinJS library modules
2014-12-18 02:08:52 +03:00
Zalim Bashorov
d666677958
JS backend: added dynamic.iterator to simplify the using "iterable" objects.
2014-12-16 17:48:25 +03:00
Alexey Tsvetkov
c78b199c0a
JS test minor: fixed recursion test for inliner
...
After changes in translator exception is no longer wrapped into another one
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
46326fe5ac
JS backend: report backend diagnostics
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
c3f67c54bd
JS backend: added jsCode test cases
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
85b2df8c61
JS test minor: use getNamedArgument for mandatory directive arguments
2014-12-15 19:16:18 +03:00
Alexey Tsvetkov
c52d6ba92e
JS test minor: removed 'Inline' from name checkFooBoxWithInlineDirectives
...
checkFooBoxWithInlineDirectives was moved from InlineTest, but was not renamed
2014-12-15 19:16:18 +03:00
Zalim Bashorov
6b50d74056
JS backend: use special JsScope(JsDynamicScope) for names from dynamic calls instead of use containing scope to avoid the impact on local names.
2014-12-11 13:17:49 +03:00
Zalim Bashorov
af82e69214
JS tests: added tests for dynamic.
2014-12-11 13:17:49 +03:00
Zalim Bashorov
7d9b824411
JS tests: use js files from some places by default:
...
* add all js files from testData/_commonFiles
* add all js files from <testDir>/_commonFiles
* add <testDir>/cases/<testName>.js if it exists
2014-12-11 13:17:48 +03:00
Zalim Bashorov
2f6a135135
JS tests: added doTest and checkFooBoxIsOkByPath to BasicTest to simplify using generated tests.
2014-12-11 13:17:47 +03:00
Zalim Bashorov
4c9fbcd525
JS frontend: introduce some JavaScript specific constants.
2014-12-10 22:48:02 +03:00
Zalim Bashorov
e378bde43e
JS backend: fix "is Boolean" check.
2014-12-10 22:48:01 +03:00
Michael Nedzelsky
5bf1d73199
JS backend: tests for translation for extension property
2014-12-04 02:42:04 +03:00
Zalim Bashorov
a8e8f9b44e
Move JsUnitTestReporter.java to utils.
2014-12-01 15:27:37 +03:00
Zalim Bashorov
3f480361f1
Move LibrarySourcesConfigWithCaching to js.frontend module.
2014-12-01 15:27:37 +03:00
Zalim Bashorov
b06096469a
JS backend: added the support nativeInvoke, nativeGetter, nativeSetter.
2014-12-01 15:27:34 +03:00
Zalim Bashorov
912727e5d2
Unify extension point and extension registration in plugin and cli
2014-12-01 15:27:33 +03:00
Alexander Udalov
8dae1b62dd
Add CharSequence.subSequence
...
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.
#KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Pavel V. Talanov
bce399f5fd
Rename: AnalyzeExhaust -> AnalysisResult
2014-11-21 15:56:05 +03:00
Nikolay Krasko
e1d51e9879
Minor: code enhancements
2014-11-17 16:15:22 +03:00
Michael Nedzelsky
dd86823480
JS backend: compile some builtins to builtins.js instead of stdlib
2014-11-11 17:09:00 +03:00
Michael Nedzelsky
5f576c4c05
JS backend: test for toGenerator from stdlib
2014-11-11 17:08:56 +03:00
Zalim Bashorov
b3defdbf90
JS tests: create JetFiles by JetPsiFactory instead of by PsiManager to avoid to access to PsiManager after it disposed.
...
That fixed js tests after changes in DiagnosticsWithSuppression.
2014-11-07 16:30:51 +03:00
Zalim Bashorov
8067a9ad56
Added regression tests for KT-2474 Range lacks reverse() in JavaScript backend
...
#KT-2474 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov
66519d9973
Added regression tests for KT-1906 Support invoke() convention is js-backend (including classes implementing Function trait)
...
#KT-1906 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov
f3d9d21757
Added regression tests for KT-3518 Null pointer during null comparison in JS Backend.
2014-10-21 22:46:09 +04:00
Zalim Bashorov
b3e34cc2b4
Minor: added regression tests for downTo.
...
Adopted tests from patch attached to KT-2586.
2014-10-21 18:25:17 +04:00
Alexander Udalov
f8be39b26b
Regenerate tests
...
After recent changes to Printer and TestGenerator
2014-10-21 00:16:08 +04:00
Alexey Tsvetkov
09c98226c8
JS backend: added tests for labels
2014-10-20 19:51:35 +04:00
Alexey Tsvetkov
0bc05135d8
JS test minor: renamed InlineTestUtils to DirectiveTestUtils
2014-10-20 19:51:35 +04:00
Alexey Tsvetkov
6d16d06120
JS test: extracted test with ast access and directives
2014-10-20 19:51:34 +04:00
Alexander Udalov
624e507ec2
Make enum classes comparable
...
#KT-3727 Fixed
2014-10-17 21:27:23 +04:00
Michael Nedzelsky
34269e1a3e
JS backend: fix KT-6037 (default arguments in simple function with expression as body)
...
#KT-6037 Fixed
2014-10-17 00:46:05 +04:00
Alexey Tsvetkov
5fb5cea4a3
JS inline: fixed bug with simple return inline function, when result is not used.
...
When function body can be expression
(contains only one statement, and it's return),
result was saved to resultExpr, not body.
But when result was not used, resultExpr was not
used then.
Fixed by checking, that result is used in first place.
2014-10-16 17:16:10 +04:00
Alexey Tsvetkov
be82d4c661
JS backend: increment counter for fresh names
2014-10-16 17:16:10 +04:00
Zalim Bashorov
55c19a632a
JS lib: introduced different output strategies, and chose them depending of environment.
...
#KT-2994 Fixed
2014-10-14 18:02:28 +04:00
Michael Nedzelsky
edac2dd3bd
JS backend: tests for KT-2468
2014-10-14 16:45:54 +04:00
Zalim Bashorov
ae39524a95
JS backend: compile primitive iterators from builtins as part of stdlib.
2014-10-13 21:25:55 +04:00
Pavel V. Talanov
b2c288b62a
Test super calls in enum literals
2014-10-10 18:12:56 +04:00
Pavel V. Talanov
bb5998048f
Test code generation for enum deriving from a trait
2014-10-10 17:43:33 +04:00
Michael Nedzelsky
12e76f3d04
JS backend: test for KT-2901: nullable type in string template
2014-10-10 17:04:18 +04:00
Michael Nedzelsky
e5bbc2a0d8
JS backend: support for Throwable.getMessage
2014-10-09 19:32:00 +04:00
Michael Nedzelsky
b15963d3fb
JS backend: fix KT-5603 (Multiple catch): add tests
2014-10-09 19:31:51 +04:00
Michael Nedzelsky
0c3a7a9d99
add more tests for bridge methods (fake override)
2014-10-07 08:37:18 +04:00
Michael Nedzelsky
04d8960a3d
JS backend: add BridgeTestGenerated
2014-10-07 08:36:50 +04:00
Michael Nedzelsky
6f1d362917
JS backend: add getPackageName to BasicTest, checkBlackBox to SingleFileTranslationTest
2014-10-07 08:36:22 +04:00
Michael Nedzelsky
b84e5969e2
JS backend: fix get mangling name for generic methods with multiply upper bounds
2014-10-07 08:36:18 +04:00
Zalim Bashorov
b5ee5877ce
JS backend: kotlin_lib_compiled -> stdlib.
2014-10-06 23:18:53 +04:00
Zalim Bashorov
9ac193407b
Fixed JS test runner: save only stdlib module from run to run.
2014-10-06 23:18:53 +04:00