Ilya Gorbunov
ea896bd217
JsTestsAsserter implement Asserter.
2015-09-08 10:26:24 +03:00
Ilya Gorbunov
44f7b6d699
Unit testing API: better mapping on JUnit, proper formatting assertion details when message is not specified
...
#KT-8929 Fixed
Sensible default message for assertion methods.
#KT-8314 Fixed
Provide assertFailsWith also with KClass and reified type argument.
2015-09-08 10:26:07 +03:00
Ilya Gorbunov
e20c86c5dc
Add missing equals() to primitive-keyed JS map specialization.
2015-09-08 10:24:25 +03:00
Ilya Gorbunov
c82c914c5d
Before comparing types of data class objects in dataClass.equals ensure that the other comparand is an object too, otherwise it may fail on Rhino.
2015-09-08 10:24:13 +03:00
Michael Nedzelsky
f6892580f6
fix tests in org.jetbrains.kotlin.js.test.semantics
2015-09-08 02:06:19 +03:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Mikhail Glukhikh
eab288bdd7
annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
...
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
2015-09-04 19:21:12 +03:00
Denis Zharkov
11fed1674e
Deprecate extension annotation in favor of Extension
2015-09-04 17:23:25 +03:00
Valentin Kipyatkov
f244bfb073
Removed conflicting extensions from our code
2015-09-03 15:55:56 +03:00
Ilya Gorbunov
c4b18d8fb8
Special case of slice for int ranges, sliceArray returning array.
...
#KT-8711
2015-09-02 20:22:38 +03:00
Ilya Gorbunov
faa26cdb25
Introduce operations on Arrays returning Arrays: reversedArray, sortedArray.
...
#KT-8711
2015-09-02 20:22:27 +03:00
Ilya Gorbunov
b3073dbd2d
Provide lazy implementation with an external object to synchronize on.
2015-09-02 15:49:53 +03:00
Yan Zhulanow
e7703df0b6
Use a single AnnotatedCallableKind enum item for property
2015-08-31 15:33:14 +03:00
Yan Zhulanow
1b9dab47ec
Deserialize property and field annotations
2015-08-31 15:33:03 +03:00
Yan Zhulanow
08c678ef46
Deserialize receiver parameter annotations for extension functions
2015-08-31 15:32:55 +03:00
Denis Zharkov
4a3fbcc16e
Make project compilable after fixes about generic nullability
2015-08-28 18:50:26 +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
Ilya Gorbunov
6f71e54268
In-place array sorting in JS.
2015-08-27 00:07:56 +03:00
Pavel V. Talanov
2ef5e03f27
Introduce TargetEnvironment and CompilerEnvironment
2015-08-19 21:18:27 +03:00
Zalim Bashorov
6c28dbd407
LookupLocation.NO_LOCATION_FROM_BACKEND -> NoLookupLocation.FROM_BACKEND
2015-08-18 12:34:19 +03:00
Zalim Bashorov
69e0f23db9
Classify Location.NO_LOCATION usages
2015-08-18 12:21:31 +03:00
Mikhail Glukhikh
90f94b47db
Deprecated enum syntax removed: JS plugin tests
2015-08-10 16:24:08 +03:00
Zalim Bashorov
0978e9f169
Minor: move LookupLocation to org.jetbrains.kotlin.incremental.components
2015-08-08 02:08:16 +03:00
Zalim Bashorov
2aa4c383cd
UsageLocation -> LookupLocation
2015-08-08 02:08:15 +03:00
Zalim Bashorov
96696c6846
UsageCollector -> LookupTracker
2015-08-08 02:08:14 +03:00
Alexander Udalov
f3857cbb89
Change overriddenDescriptors' type from Set to Collection
...
So that the easiest way of constructing a HashSet in the implementation will be
not the only possible way to implement getOverriddenDescriptors(). If there's
not too many overridden descriptors, an implementation may decide to return a
small list for example instead
2015-08-07 23:01:23 +03:00
Alexander Udalov
942ab9ef6d
Make 'hasDefaultValue' an extension on ValueParameterDescriptor
...
To avoid storing a Boolean and a boolean. It isn't called frequently enough to
justify this wasted space for each parameter of every function out there
2015-08-07 23:01:20 +03:00
Valentin Kipyatkov
d5f95cf126
Correct visibility for non-public SAM-adapters
2015-08-04 18:05:56 +03:00
Mikhail Glukhikh
61fbe0d1e8
Refactoring of repeatable on retention SOURCE check (correct additional checker usage)
2015-08-03 19:43:24 +03:00
Mikhail Glukhikh
4bd48c4796
Regular modifier checker implemented (initial version). A set of tests fixed accordingly.
...
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT.
A set of modifier diagnostics is not in use now (but not deleted yet).
2015-08-03 19:41:50 +03:00
Sergey Mashkov
0e25a5ea82
JS: arrayToString should use toString() instead of direct join to handle nulls properly
...
#KT-8663 Fixed
2015-07-31 14:28:30 +03:00
Sergey Mashkov
2826f193dd
AbstractCollection should use Kotlin.toString
...
#KT-8662 Fixed
2015-07-31 14:28:30 +03:00
Mikhail Glukhikh
219ffa4fb3
Dead code removed
2015-07-28 17:13:34 +03:00
Mikhail Glukhikh
d6406d8d4a
Annotation repetition checking with a pair of tests, some old tests changes
2015-07-28 17:13:32 +03:00
Pavel V. Talanov
2b9fc5268e
Inject ConstantExpressionEvaluator into JsCallChecker
...
Do not pass expected type into evaluateExpression
2015-07-24 13:47:51 +03:00
Ilya Gorbunov
877cb72ba1
Array.copyOfRange: rename from, to to fromIndex, toIndex
2015-07-24 04:35:21 +03:00
Ilya Gorbunov
12e3542bce
Provide toTypedArray method for primitive arrays.
2015-07-24 04:33:55 +03:00
Ilya Gorbunov
b7829d8471
JS: Make js Error to be mapped to kotlin.Throwable, inherit Exception and Error from Throwable.
2015-07-24 04:32:03 +03:00
Ilya Gorbunov
f604eef2fe
Undeprecate find(predicate) and generate it for all collection-like types. Provide findLast(predicate).
...
Drop deprecated method findNot and extension properties first, last, head, tail
#KT-5185 Fixed
2015-07-24 04:28:46 +03:00
Pavel V. Talanov
8cc9739f72
Refactor: Pass TargetPlatform instead of configurator, hide DynamicTypesSettings inside configurator
2015-07-23 16:15:38 +03:00
Pavel V. Talanov
84b8ed00c5
Refactor: Move TargetPlatform to frontend, make it expose platform dependant resolve services
...
AdditionalCheckerProvider -> PlatformConfigurator which operates directly on container
2015-07-23 16:15:35 +03:00
Pavel V. Talanov
3227ae5577
Inject non-context dependent CallCheckers instead of getting them from context
2015-07-23 16:15:28 +03:00
Zalim Bashorov
679d5fe496
Introduce UsageCollector
2015-07-21 22:27:27 +03:00
Zalim Bashorov
41449c107e
Location.NOWHERE -> UsageLocation.NO_LOCATION
2015-07-21 22:27:25 +03:00
Zalim Bashorov
0f92036353
Add location parameter to JetScope::getFunctions
2015-07-21 22:27:25 +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
Mikhail Glukhikh
94a00540be
Targeting / retention for a set of standard annotations, some inapplicable annotation checks replaced with target check, some fixed tests
2015-07-21 15:36:53 +03:00
Alexander Udalov
b5763e311f
Minor, unworkaround the fixed issue
2015-07-21 13:32:26 +03:00
Dmitry Jemerov
708513ce4c
optimize imports
2015-07-20 18:32:13 +02:00
Dmitry Jemerov
3718a7dd44
code cleanup for JS modules
2015-07-20 18:32:05 +02:00