Pavel V. Talanov
758254a5b4
Attempt to fix mvn build.
2012-08-14 18:48:26 +04:00
Pavel V. Talanov
9dce8a9f33
Merge remote-tracking branch 'origin/master'
...
Conflicts:
js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/factories/RangesFIF.java
js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/patterns/NamePredicate.java
2012-08-14 13:04:38 +04:00
Pavel V. Talanov
4320a5fb61
Don't generate code for javautilCode.kt.
2012-08-14 12:44:51 +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
3dfb510a62
Regenerated JavaScript stubs.
2012-08-08 14:48:03 +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
0ccc0de2fe
add support for java.util.Date for both JVM and JS back ends (we could maybe introduce a kotlin.Date pseudo type one day)
2012-07-25 02:57:53 +01:00
James Strachan
6fd3cd0bf0
added support for java.io.Closeable as a standard interface
2012-07-24 11:28:19 +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
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
925e5b2236
refactored the JS kotlin code so that we've a simple naming convention (*Code.kt") to refer to library code which needs to generate JS code to separate those files from the pure definitions which just refer to existing JS code already - this will help make it easier to keep the maven build and the js test cases in sync
2012-07-05 10:34:00 +01:00
James Strachan
c2ca06a8cf
simplified the code to try get the JS generation to work (seems to not like fully qualified classes)
2012-07-04 22:02:39 +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
Pavel V. Talanov
a3a2f51c9c
More missing "public"
2012-07-04 12:40:39 +04: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
ffffe84fcb
added more working DOM test cases for JS
2012-07-03 19:54:32 +01:00
Pavel V. Talanov
592b0e9c37
Specify visibility in some files in jslibs
2012-07-03 21:36:04 +04:00
James Strachan
25bf753369
added test case for KT-2354
2012-07-03 13:55:49 +01:00
Pavel V. Talanov
e1ecdead75
Turn off the failing StdLibToJSTest. It fails due to some frontend bug.
2012-07-03 16:41:03 +04:00
Pavel V. Talanov
d6ffb42497
pull https://github.com/develar/kotlin ecma5-iter3 Make most of the tests work.
...
Thanks to develar.
2012-07-03 15:27:37 +04:00
James Strachan
541f3d4e78
got more map code compiling to JS and running as unit tests
2012-07-03 07:43:15 +01:00
Pavel V. Talanov
da24b36071
Turn on tests.
2012-07-02 17:29:09 +04:00
Pavel V. Talanov
5004b2e01b
Separate library files which contain code and those which declarations only. Fixes builder test/
2012-07-02 17:29:08 +04:00
Pavel V. Talanov
53e77abefc
Fix most of the tests. Turn off 3 of the tests temporarily.
2012-07-02 17:29:07 +04:00
Pavel V. Talanov
3504106981
JsTests speed up: Analyze standard library only once.
2012-07-02 17:29:05 +04:00
James Strachan
63e0f169fc
re-enabled compiling to JS test cases now we've fixed the compilation of the latest comparator based standard library code
2012-06-29 23:13:05 +01:00
develar
77320e07f2
ArrayList improvements:
...
1) remove must compare object using Kotlin.equals (the same as in contains)
2) use ArrayIterator instead of ListIterator (perfomance)
3) remove duplicated code (refactor)
4) toArray
5) fix "add((index, item)" — correct translation to JavaScript "addAt"
2012-06-28 11:13:48 +04:00
develar
39fe690ec8
js enumerable for ecma5
2012-06-28 09:57:18 +04:00
develar
3e491ba7f1
https://developer.mozilla.org/en/JSON (cherry picked from commit f91d3a8)
2012-06-28 09:57:18 +04:00
develar
47a8ff060d
KT-2137 console
2012-06-28 09:57:17 +04:00
James Strachan
4a4cf0467f
more of the stdlib compiling to JS
2012-06-23 06:58:40 +01:00
James Strachan
8a6b752357
refactored the standard library so most of the collection APIs in the standard library can be compiled to JS
2012-06-21 15:53:39 +01:00
James Strachan
071e276e08
started compiling more of the kotlin library to JS; now testing the String methods in JS
2012-06-19 07:23:42 -05:00
Alexander Zolotov
ae00b0bb15
Fix foldRight implementation for iterables
2012-06-15 13:22:47 +04:00
James Strachan
3765e85ca8
compile the assertions and a test case to QUnit on JS and got a working example to run the unit test case - yay!
2012-06-13 16:14:13 +01:00
pTalanov
9394e21208
Remove symbol added by accident into javalang.kt
2012-06-13 18:47:06 +04:00
pTalanov
7c1f670942
Remove exceptions from js.* package. Move them to java.lang . Import java.lang by default
2012-06-13 18:13:44 +04:00
James Strachan
768469fb23
added support for generation of QUnit unit tests from Kotlin JUnit test cases
2012-06-12 12:48:14 +01:00
Andrey Breslav
91606a3901
Introduce 'reified' instead of 'erased'
2012-06-05 20:19:07 +04:00
pTalanov
39dc1a1cb8
revert 9f0fcc280b
2012-06-01 19:14:00 +04:00
James Strachan
9f0fcc280b
added support for generation of QUnit unit tests from Kotlin JUnit test cases
2012-06-01 15:25:35 +01:00
James Strachan
23db5d7fc8
fixed bug in property generation on the JS DOM API
2012-06-01 11:40:30 +01:00
James Strachan
ee1e7d5906
attempt to fix the build - whoops, sorry again :)
2012-06-01 08:38:27 +01:00
James Strachan
bc7104a8fe
update the DOM API so that we implement using the property style access of properties which work natively in JS and avoid using getter/setter methods in the DOM library so that they can easily compile to JS too from the same org.w3c.dom API on the JVM
2012-06-01 07:45:55 +01:00
James Strachan
570f9d765d
for now switch to the org.w3c.dom API
2012-06-01 07:45:02 +01:00
pTalanov
5fa3e96e4b
drop interval/timeout funs. Modify traffic light example
2012-05-31 20:45:55 +04:00
pTalanov
0fb7032f4c
Remove old image element and canvas APIs
2012-05-31 20:45:54 +04:00