4225 Commits

Author SHA1 Message Date
James Strachan d6d99ec226 temporary disabled 2 failing JS compile tests until I figure out the fix ;) 2012-06-26 06:18:52 +01:00
James Strachan 4a4cf0467f more of the stdlib compiling to JS 2012-06-23 06:58:40 +01:00
James Strachan 0a3809fa2e disabled a failing unit test for JS generation (will re-enable soon...) and made the generated QUnit test code work with many test classes 2012-06-19 08:12:28 -05:00
pTalanov ee689cb1ab Safe calls work for native properties
#KT-2209 fixed
2012-06-15 19:08:46 +04:00
pTalanov 3bb14ecd7f Add toString call when interpolating strings 2012-06-15 18:19:10 +04:00
pTalanov 1ba6470e8d Check for undefined whenever check for null 2012-06-15 18:19:08 +04:00
pTalanov bdd83d86f6 Modified StdLibTest to check for node types of the created elements 2012-06-15 15:08:42 +04:00
pTalanov c1a2eaf47a Support class objects for native classes 2012-06-15 15:08:41 +04:00
pTalanov ea5f4d428c Refactor NativeInteropTest 2012-06-15 15:08:40 +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
James Strachan e894054bba exclude the base class from being executed as a test case 2012-06-12 19:53:27 +01:00
James Strachan 60738b7b4f minor refactor of the JS test cases to ensure they don't collide in the generated JS code 2012-06-12 19:51:34 +01: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
pTalanov 1937823a77 Test for evaluating properties lazily 2012-06-05 21:56:32 +04:00
pTalanov 6b9495a159 Cosmetics 2012-06-05 19:29:25 +04:00
pTalanov 104061b7f8 Cosmetics after pulling https://github.com/JetBrains/kotlin/pull/67 2012-06-05 19:29:21 +04:00
develar d4d300d0e9 Requested only one commit pull request (was: https://github.com/JetBrains/kotlin/pull/59/files).
Note: all tests passed, but I haven't tested this build in real life (opposite to my master branch).

Don't remember about critical issue — http://youtrack.jetbrains.com/issue/KT-2154 Fix for this issue is not included in this patch (because unrelated). Fix for it and for all other unrelated changes will be opened as separated pull-requests.
2012-06-05 19:29:20 +04:00
pTalanov d11b0a617c WebDemoCanvas test files synched with actual version in WD 2012-06-05 16:48:15 +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 ee1e7d5906 attempt to fix the build - whoops, sorry again :) 2012-06-01 08:38:27 +01:00
James Strachan d450acf99c made the test case fail if there is a compile error - and temporarily commented out a few JS library files that don't compile yet 2012-06-01 07:44:38 +01:00
pTalanov 22fe0d80a7 Remove redundant canvas helper 2012-05-31 20:45:56 +04:00
pTalanov 5fa3e96e4b drop interval/timeout funs. Modify traffic light example 2012-05-31 20:45:55 +04:00
pTalanov cd0bc43624 Adding an early version of js dom library. Fancy lines example passing (others failing) 2012-05-31 20:45:48 +04:00
James Strachan 4cff5f9759 modified the JS compiler so that it can have definitions and library sources specified or discovered on the classpath; so for example we can then discover the kotlin standard library kotlin that needs to be compiled; plus the JS library definitions (which map to the kotlin-lib.js file) 2012-05-30 15:51:08 +01:00
James Strachan d7573b49a6 allow the JS compiler to take a list of files, verbose flag and a flag to indicate if a main call is required; plus added a test case to ensure we can compile some of the kotlin standard library using the K2JSCompiler directly 2012-05-30 11:31:35 +01:00
James Strachan 1a77c36040 got the kotlin/Dom.kt, Preconditions.kt and AbstractIterator.kt compiling as JS; needs more testing of using these APIs from JS though... 2012-05-29 15:02:17 +01:00
pTalanov 64703106ea Add tests which check that web demo canvas examples compile correctly 2012-05-29 17:29:39 +04:00
James Strachan bed2ec95d1 added a test case to compile some of the standard kotlin library as JS 2012-05-29 10:29:18 +01:00
James Strachan adf38a0648 added a working JS test case using the standard kotlin browser API for interacting with the DOM 2012-05-25 20:38:04 +01:00
Pavel V. Talanov 2bb647bdb8 Some magic to make test work 2012-05-25 14:45:01 +04:00
James Strachan ea9267e869 added test case trying to get the document property working on JS - not quite there yet :( 2012-05-25 10:25:54 +01:00
James Strachan b9bcfd2628 added a (disabled) test case to try out using the kotlin.browser.document property from generated JS 2012-05-24 16:59:30 +01:00
Pavel V. Talanov b64cf035b0 !! operator
kotlin_lib.js modified, truthful description of MiscTest class added.

#KT-1960 fixed
2012-05-24 16:40:18 +04:00
Pavel Talanov 0fc64bb6c2 First stab at !! operator 2012-05-24 16:40:17 +04:00
pTalanov ce896f931a Issue related to KT-1962
Correctly reference this object in wrapped function literal
2012-05-16 19:30:23 +04:00
pTalanov 6d414ba222 Mark the tests which are failing with EcmaVersion.v5 and exclude them 2012-05-15 22:20:15 +04:00
pTalanov 43c168baef Make js.tests perform each test with different Ecma versions
This leads to tests failing
2012-05-15 22:20:15 +04:00
pTalanov 3bab6bee93 Make tests aware of different ecma versions
Introduce version parameters in relevant test methods
2012-05-15 22:20:14 +04:00
pTalanov a9af4960cb Introduce some convenience methods related to EcmaVersion 2012-05-15 22:20:13 +04:00
develar e0be72d5b5 http://devnet.jetbrains.net/thread/436214?tstart=0 2012-05-15 22:20:10 +04:00
pTalanov 1b516d2786 Issue related to KT-1962 2012-05-14 18:00:39 +04:00
pTalanov 9dfca4feb5 Uncomment test for KT-921
Minor code improvements
2012-05-05 22:17:19 +04:00
pTalanov 7b30cc3269 Minor code improvements and TODO fixes. 2012-05-05 22:03:42 +04:00
pTalanov 1896f7250f Refactor js.tests
Use Test#getName where possible
2012-05-05 20:37:02 +04:00
pTalanov 29f224b81f EA - 35896 Case when property accessors are declared but only access level is specified 2012-05-05 19:36:22 +04:00
pTalanov c1e4b20e38 KT-1747 Can't have main function in nested namespaces
#KT-1747 Fixed
2012-05-05 18:55:19 +04:00
pTalanov 869a8ab1ba Refactoring of K2JSTranslator and neighboring classes
Drop GenerationUtils
Introduce MainCallParameters
Generate calls to main function together with the other code in contrast to as text afterwards
Enhance tests a bit
2012-05-05 18:50:02 +04:00
pTalanov ea6076f638 KT-1865 Calls with default argument values are generated incorrectly
#KT-1865 Fixed
2012-05-05 16:51:48 +04:00