Commit Graph

105 Commits

Author SHA1 Message Date
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
pTalanov 68680f702b Fix a bug which caused incorrectly generated js when you call extension literal from extension function. 2012-05-05 16:51:48 +04:00
pTalanov be98258ffa Change tests dependencies. 2012-05-04 16:15:03 +04:00
pTalanov 5ea8e0f697 Rollback commented out code.
Implement a hacky solution for the new "invoke" concept.
Fix most of the tests. (apart from 3)
2012-05-04 16:00:39 +04:00
Stepan Koltsov f4527b8167 better method name 2012-05-03 18:30:47 +04:00
Svetlana Isakova 04c2e1a64b Fallen (because of VariableAsFunctionResolvedCall change) javascript backend tests temporary commented 2012-05-03 14:46:06 +04:00
pTalanov d0d5b147f2 Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common 2012-04-25 20:19:15 +04:00
Stepan Koltsov a034eefb51 js: rename "anonymous" ns to "root"
also use constant field instead of hardcoded literal in tests
2012-04-09 22:31:57 +04:00
Pavel V. Talanov 6cf51fb20a IDEAConfig move to idea module (circular dependency).
Slightly modify Config class.
2012-04-06 19:55:21 +04:00
Pavel V. Talanov 973c6f8d85 Read lib files for IDEA config from zip archive. 2012-04-04 16:08:11 +04:00
Pavel V. Talanov fc683e8141 Support for elvis operator. 2012-04-02 20:46:03 +04:00
Pavel V. Talanov 2650e9f6b0 Support when without expression.
#KT-1666 Fixed
2012-03-30 13:28:05 +04:00
Pavel V. Talanov 36e242a9e6 Add test for uncovered case. 2012-03-30 13:28:04 +04:00
Pavel V. Talanov 87381a06a7 Test for inline dangerous expressions.
Better FindPreviousVisitor#hasDangerous implementation.
2012-03-28 21:20:38 +04:00
Pavel V. Talanov e9f78b6fe2 Add test for another case. 2012-03-28 19:44:50 +04:00
Pavel V. Talanov fd1d6e8dfc Support inline for simple extension function case. 2012-03-28 19:42:57 +04:00
Pavel V. Talanov 9b2dc6f584 More cases supported for inline functions: namespace level functions with parameters (not blocks) 2012-03-28 19:42:55 +04:00
Pavel V. Talanov 8843bac989 First stab at inline functions. 2012-03-28 19:42:54 +04:00
Pavel V. Talanov 1e180f550f Fixed a problem which sometimes caused expressions to be evaluated in the wrong order. 2012-03-28 14:04:47 +04:00
Andrey Breslav a89e26b3ac Fixed test paths in JS tests 2012-03-24 08:13:57 +01:00
Pavel V. Talanov 807836322c Add a test for referencing classes using fqnames. 2012-03-19 16:51:31 +04:00