Commit Graph

489 Commits

Author SHA1 Message Date
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 d8eaffa4e3 added neater messages if there's a failure 2012-07-05 14:50:40 +01:00
James Strachan 9711bc841e enabled the KDocTest again - was out of memory before 2012-07-05 12:55:34 +01:00
James Strachan 20da5c48ea got the mvn k2js plugin working again & re-enabled the js building in the mvn build (apart from running the junit JS tests as some of them fail) 2012-07-05 11:43:35 +01:00
James Strachan 9d64960720 enabled the Map tests as they seem to work fine again now 2012-07-05 11:04:31 +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 b1d231d0e0 attempt to try fix the CompileMavenGeneratedJSLibrary test case 2012-07-05 08:56:06 +01:00
James Strachan d950d19292 fixed up the maven plugin after Pavel's changes 2012-07-04 22:01:04 +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
James Strachan 1fba1ade13 work around for KT-2356 2012-07-03 14:29:40 +01:00
James Strachan 25bf753369 added test case for KT-2354 2012-07-03 13:55:49 +01:00
Evgeny Gerashchenko 77df57c150 Replaced jdk-headers with jdk-annotations everywhere. 2012-07-03 13:36:58 +04:00
Evgeny Gerashchenko ef19700283 Added attaching external annotations via module script. 2012-07-03 13:35:52 +04:00
James Strachan d8d1da7334 disabled mvn compile of JS samples until we fix: java.lang.IllegalStateException: null at (5,10) in /stdlib/JUMaps.kt.jet 2012-07-03 08:12:51 +01:00
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
James Strachan 8637373aa2 disabled mvn compile of JS tests until we fix: java.lang.IllegalStateException: null at (5,10) in /stdlib/JUMaps.kt.jet 2012-07-03 07:42:21 +01:00
James Strachan 9a6477c121 added simpler natural language text sample 2012-07-03 06:52:25 +01:00
James Strachan 3a196d6718 Merge pull request #88 from zolotov/fix-reverse-and-sort-for-lists
Fix reverse and sort functions for lists
2012-07-02 03:42:05 -07:00
James Strachan 0da54aac1c added a sample natural language test case as per this discussion http://devnet.jetbrains.net/thread/437088?tstart=0 2012-06-30 10:16:02 +01: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
Nikolay Krasko 2c77a0941d Add reader intention for the thread operation (EA-36906) 2012-06-26 19:33:25 +04:00
James Strachan e7d6263a58 temporary disabled 2 failing JS builds until I figure out the fix ;) 2012-06-26 06:29:33 +01:00
Alexander Zolotov e2400e1b0e Merge branch 'master' into fix-reverse-and-sort-for-lists
Conflicts:
	libraries/stdlib/test/CollectionTest.kt
2012-06-26 01:49:35 +04:00
James Strachan 95f61effc6 Merge pull request #87 from zolotov/sortby-function-implementation
Sortby function implementation
2012-06-25 13:47:59 -07:00
Alexander Zolotov 34f485e45a Fix functions List<T>.sort() and add sort functions for java.lang.Iterables.
See Problem 3 at https://github.com/JetBrains/kotlin/pull/78#issuecomment-6533534
2012-06-26 00:36:24 +04:00
Alexander Zolotov 1cc7ab6b8d Fix function List<T>.reverse().
- fix tests names
2012-06-26 00:15:27 +04:00
Alexander Zolotov 1e301843f7 Fix function List<T>.reverse().
For now all iterables (including List) return reversed *copy* of collection.
See Problem 3 at https://github.com/JetBrains/kotlin/pull/78#issuecomment-6533534
2012-06-26 00:13:26 +04:00
Stepan Koltsov 8d2bd30585 kdoc: constants for names 2012-06-25 23:55:30 +04:00
Stepan Koltsov be1b9a011b kdoc: link to generated html source from kdoc 2012-06-25 23:55:30 +04:00
Stepan Koltsov caddc84950 kdoc: KClass: remove unnecessary name parameter 2012-06-25 23:55:29 +04:00
Stepan Koltsov 5cd062f95b kdoc: compute source file relative paths in model 2012-06-25 23:55:29 +04:00
Stepan Koltsov 631832b325 kdoc: change highlighter2 into doclet 2012-06-25 23:55:29 +04:00
Stepan Koltsov 8372ad7ec2 kdoc: cleanup 2012-06-25 23:55:28 +04:00
Alexander Zolotov 8b191f5179 Disabled failing JS test case (kotlin-js-tests module) until function comparator works 2012-06-25 23:40:30 +04:00
Alexander Zolotov 019962b654 Add sortBy method for interables 2012-06-25 23:40:18 +04:00
James Strachan 2aceeebc95 enabled the ListTest to demonstrate KT-2314 - we can re-enable the kotlin-js-tests-junit test case when this is fixed 2012-06-25 10:14:20 +01:00
James Strachan 7803393aa4 fixed up the JS generation of the Dom stdlib code 2012-06-25 10:04:13 +01:00
James Strachan c09106fe68 fixed the JS maven plugin so it can generate a single JS file with all the required kotlin JS inside 2012-06-25 10:03:46 +01:00
James Strachan 8646748e46 disabled failing JS test case until Collections.emptyList() works 2012-06-23 08:53:01 +01:00
James Strachan c8a1ffe813 added JS support for toSet() and fixed issue with code generated array methods 2012-06-23 07:49:15 +01:00
James Strachan 4a4cf0467f more of the stdlib compiling to JS 2012-06-23 06:58:40 +01:00