Alexander Udalov
d99ffbd120
jet.Annotation
...
Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
#KT-1620 Fixed
2012-08-27 20:44:43 +04:00
Andrey Breslav
c0c2ca0ac2
Report errors when iterator() returns a nullable type
2012-08-24 19:49:33 +04:00
Andrey Breslav
66faa0c03a
For-loop range expression (collection) can not be null
2012-08-24 19:49:33 +04:00
Svetlana Isakova
ea611cb51d
check modifiers for local declarations
2012-08-22 20:42:35 +04:00
James Strachan
1c763dabe2
uncommented test now KT-1718 is fixed
2012-08-17 10:47:29 +01:00
James Strachan
ecbd4daefb
avoid unnecessary verbose type parameters now the type inferencer is better
2012-08-17 09:44:52 +01:00
Svetlana Isakova
6625c8987b
removed unnecessary reference
...
to java.util.Iterator
2012-08-16 18:39:24 +04:00
Svetlana Isakova
396588f0c3
added jet.Iterator in import
...
(KT-2606 to avoid it)
2012-08-16 18:39:23 +04:00
Svetlana Isakova
77ef3d34ab
not to generate extensions
...
to java Iterable/Iterator
2012-08-16 18:39:23 +04:00
Svetlana Isakova
266cd5d4e7
not generate methods for java Iterable/Iterator
...
in standard library
2012-08-16 18:39:23 +04:00
Svetlana Isakova
ca6d7e643e
use kotlin Iterable/Iterator
...
instead of java Iterable/Iterator
in Kotlin code in library
2012-08-16 18:39:23 +04:00
Svetlana Isakova
e1281953e7
tests changed
...
val hasNext -> fun hasNext()
2012-08-16 18:39:23 +04:00
Evgeny Gerashchenko
5d8de8fbd2
KT-2596 Can't use iterator in for-loop
...
#KT-2596 fixed
2012-08-09 19:14:31 +04:00
Evgeny Gerashchenko
1bc99ef19a
KT-2579 Rename Range.minus() to reversed and make it extension
...
#KT-2579 fixed
2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko
8084876fed
Using empty ranges in downTo generator.
2012-08-09 15:13:42 +04:00
Evgeny Gerashchenko
a4031225d0
Changed usages of upto/downto in test to rangeTo and downTo, respectively.
...
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko
662fdca034
Added generator and generated for downTo() extension functions for numbers.
...
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko
3dfb510a62
Regenerated JavaScript stubs.
2012-08-08 14:48:03 +04:00
James Strachan
713a2d3bf0
enabled more tests now that KT-2520 is fixed
2012-08-03 09:00:25 +01:00
James Strachan
137eee3f45
moved the Map<String,String>.toProperties() helper function into the standard library and added a test case
2012-08-02 11:57:12 +01:00
Evgeny Gerashchenko
ab5505eed2
Using equals to compare ranges in CollectionTest.
2012-07-31 22:15:07 +04:00
Evgeny Gerashchenko
5667e76f4f
Added Int.indices extension property.
2012-07-31 22:15:07 +04:00
Evgeny Gerashchenko
69313ae3be
Removed redundant null checking.
2012-07-31 22:15:07 +04:00
James Strachan
1691298539
added test case to investigate KT-2495
2012-07-26 05:06:05 -04:00
James Strachan
559cfe29c8
added test case for KT-2520
2012-07-25 05:58:09 -04:00
James Strachan
7d0b03de76
added the dom events API to the kotlin standard library and get it compiling as JS too (not unit tested yet mind you ;)
2012-07-25 02:57:53 +01:00
James Strachan
b25c27bfed
added first cut of the DOM events API (its not all compiling to JS yet though due to Class<T> not being supported)
2012-07-24 11:10:50 +01:00
Svetlana Isakova
6f8f151db5
added java.lang.Comparable to JavaTypeTransformer
2012-07-20 19:34:55 +04:00
James Strachan
a2184526d8
added a Node.clear() helper method so they can be cleared like collections
2012-07-20 12:12:45 +01:00
James Strachan
fbee1a8135
renamed to avoid confusion with other MapTest in QUnit
2012-07-20 07:15:43 +01:00
James Strachan
e8ddeca248
got more test cases working in JS in a web browser; not sure why lots fail in selenium in JUnit
2012-07-19 21:35:22 +01:00
James Strachan
9dac461dbf
used a simple implementation of withIndices() which offers a more consistent API (lists are easier to use than Iterables) and works around a JS generation bug so that ListTest now works in JS in a browser (though not, alas, in selenium/rhino/htmlunit)
2012-07-19 20:52:09 +01:00
James Strachan
d8d6dc1626
fixing the mvn build; whoops :)
2012-07-19 15:51:19 +01:00
Hiram Chirino
ac434d4852
Adding support for transforming functions into Callable objects and integration with ExecutorService.
2012-07-18 14:55:50 -04:00
Hiram Chirino
7cbb8a19fb
Support using an executor as a function to execute a block.
2012-07-18 12:37:26 -04:00
James Strachan
33ef414f01
added tests so we can easily run QUnit tests in headless mode inside a stand alone JUnit test without Selenium; with just Rhino. JsArrayTest works great in Rhino stand alone and in a browser; but not Selenium; not sure why yet...
2012-07-05 21:40:06 +01:00
James Strachan
e9ed7b6d2a
add more array based tests and JS compliant typesafe array constructor functions
2012-07-05 16:27:39 +01:00
James Strachan
b4dace2c29
added a native array() function for the JS generation; also refactored the code generated collection APIs so that most of them can be used with JavaScript and included more array based APIs into the JS generation
2012-07-05 15:49:10 +01:00
James Strachan
bea649bf87
enabled the unit testing of a subset of the standard library JUnit test cases with the compiled JavaScript versions and running them in QUnit in a JUnit test case
2012-07-05 14:51:28 +01:00
James Strachan
b1d231d0e0
attempt to try fix the CompileMavenGeneratedJSLibrary test case
2012-07-05 08:56:06 +01:00
Pavel V. Talanov
b796d5a643
Merge remote-tracking branch 'origin/master'
2012-07-04 20:59:26 +04:00
James Strachan
1c5e54be8f
avoid the use of enums as the JS generation isn't supported yet (see KT-2368)
2012-07-04 16:04:54 +01:00
Pavel V. Talanov
92231d2eae
Merge remote-tracking branch 'origin/master'
...
Conflicts:
js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java
js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestToJSTest.java
2012-07-04 18:32:24 +04:00
James Strachan
bb8dc49692
added more iterator based tests to the JS compilation; exposes some issue with enums...
2012-07-04 09:19:03 +01:00
James Strachan
64b00f0a19
fixed bug in generated dom (missing public on the Node class object) and split the JVM specific Iterator standard library to a separate file for easier JS reuse
2012-07-04 08:46:26 +01:00
James Strachan
b9edbea926
latest code generated standard library apis
2012-07-04 08:28:39 +01:00
James Strachan
8f94f5e43f
added a bunch more JS test cases from standard library test cases
2012-07-03 22:20:00 +01:00
James Strachan
038f0af68f
fixed failing test case, so we can use the browser API from JVM code and at least have an empty document to play with
2012-07-03 20:14:13 +01:00
James Strachan
ffffe84fcb
added more working DOM test cases for JS
2012-07-03 19:54:32 +01:00
Pavel V. Talanov
7d29468e37
Revert: Kolya's commit to JLangIterables.kt
2012-07-03 20:42:59 +04:00