2983 Commits

Author SHA1 Message Date
Pavel V. Talanov 52a933e179 Iterating over iterator. 2012-08-16 20:24:57 +04:00
Pavel V. Talanov b0856cb364 Do not translate library (marked by annotation) declarations. 2012-08-14 18:48:24 +04:00
Pavel V. Talanov 954c1ee29f Fix test file name. 2012-08-14 14:01:27 +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 71adfb57db Drop libraryDirectories CLI option. 2012-08-14 12:44:52 +04:00
Pavel V. Talanov 554b43df68 Use jshint instead instead of jslint in js.tests.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:48 +04:00
Pavel V. Talanov 310d926747 Test for KT-2388: if function passed as setTimeout callback, all "this" references will be point to HTML window instead of real object.
#KT-2388 fixed
2012-08-14 12:44:44 +04:00
Pavel V. Talanov 8ec0f8af3f IndentifierCashTest#testUseVariableOfNameOfFunction uncommented. 2012-08-14 12:44:42 +04:00
Pavel V. Talanov 235aed0131 Tests: use JsTestUtils#successOnEcma5 instead of EnumSet#of.
Uncomment test which succeded on ecma5.
2012-08-14 12:44:41 +04:00
Pavel V. Talanov de3ebf9baa Tests:ObjectInheritingFromATrait test enhanced, ObjectInheritingFromClass test added. 2012-08-14 12:44:40 +04:00
Pavel V. Talanov 6febebc7b3 Tests: drop EcmaVersions usage, add test inheritFromJetIterator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:39 +04:00
Pavel V. Talanov 0a002bcc53 Test for calling functions in initializers.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:38 +04:00
Pavel V. Talanov 40ea266a8a Use DEFAULT_ECMA_VERSIONS constant in tests instead of EcmaVersions#all(). Some code style issues as well.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:29 +04:00
Pavel V. Talanov a7c6776876 Code style issues: use iterable instead of enum set, remove public in interface.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:25 +04:00
Evgeny Gerashchenko 4f68b926fb Fixed RangeTest. 2012-08-08 15:37:58 +04:00
Evgeny Gerashchenko e14a612699 Removed downto cases from JS backend tests (to be restored, see KT-2586) 2012-08-08 14:48:04 +04:00
Pavel V. Talanov 0776892b3c Fix for a problem which sometimes caused environment to be broken when tests using JsUnitTestBase fail. 2012-08-08 13:05:15 +04:00
Pavel V. Talanov 0a92843245 Use other version of JS ast by develar: migrate code to using new ast.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-07 13:38:34 +04:00
Pavel V. Talanov 3f2e1bc1ce Move TEST_MODULE_NAME to Config and rename to REWRITABLE_MODULE_NAME. 2012-08-03 16:35:18 +04:00
Pavel V. Talanov 0f8113b345 Adopt tests for classes and nameclashes from codegen. 2012-08-01 16:26:08 +04:00
Pavel V. Talanov b883bf6ef5 Adopt more tests for functions from codegen tests.
Create test for KT-2565.
2012-07-31 18:51:13 +04:00
Pavel V. Talanov 0710efdc16 Add tests for newly discovered issue with ECMA5 and top level vars in root scope. 2012-07-31 18:51:12 +04:00
Evgeny Gerashchenko 9a5fc78b85 Removed factory methods from JetCoreEnvironment since they only invoke constuctor. 2012-07-31 16:33:45 +04:00
Pavel V. Talanov 957a494c53 Adapt some tests from codegen for k2js translator.
Tests for default arguments.
2012-07-31 13:18:25 +04:00
Pavel V. Talanov 49e51220d7 Correct equals for tuples. 2012-07-31 13:18:24 +04:00
Pavel V. Talanov e0ff877b47 Fix for a bug that caused invalid code generated for calling extension from another extension. 2012-07-31 13:18:24 +04:00
Pavel V. Talanov f37fae6e29 KT-2310: js: !! translated incorrectly (syntax ok, but logic not).
#KT-2310 Fixed
2012-07-27 18:00:03 +04:00
Pavel V. Talanov 04d9b4685b KT-2177: object literal as initializer value for class/object property — undefined variable generated.
Just test.

 #KT-2177 Fixed
2012-07-27 17:36:11 +04:00
Pavel V. Talanov b234294863 Better message for long constants. 2012-07-27 17:36:11 +04:00
James Strachan eeb2e024ad added a test case for KT-2507 2012-07-25 04:57:10 -04:00
James Strachan 2cf411eaea added a test case for KT-2515 2012-07-25 04:05:28 -04:00
Pavel V. Talanov 3ce9022f6b KT-2342: Type mismatch on Int division.
# KT-2342 Fixed
2012-07-23 19:50:47 +04:00
Pavel V. Talanov 39edcda317 KT-2227 Call to toString missing when interpolating string literal.
Test only.

 #KT-2227
2012-07-20 18:57:37 +04:00
Pavel V. Talanov d3933bcc3f KT-2370: foo.equals(bar) doesn't compile in JS.
Only test.

  #KT-2370
2012-07-20 18:50:32 +04:00
Pavel V. Talanov 0b4499a4b7 For with Int#downto, Int#upto do not iterate on empty ranges. 2012-07-20 14:18:41 +04:00
Pavel V. Talanov 8eb0fb31ca Int#downto 2012-07-20 14:18:40 +04:00
Pavel V. Talanov ad94786555 Int#upto 2012-07-20 14:18:39 +04:00
James Strachan 22f24906dd fixed build 2012-07-20 08:33:33 +01:00
James Strachan 9784e2a768 fixed build 2012-07-20 08:24:13 +01:00
Pavel V. Talanov 675fde1347 StdLibSetTest: some tests pass. 2012-07-19 21:08:07 +04:00
Pavel V. Talanov 4b9df9d541 StdLibIteratorsTest: more tests pass. 2012-07-19 20:43:23 +04:00
Pavel V. Talanov 803be4b0d5 Overloading operations via extension functions.
Also inline useless TranslationUtils#zeroLiteral. Eliminate dead code.
2012-07-19 20:43:22 +04:00
Pavel V. Talanov fd96e9b9c0 StdLibIteratorsTest: some tests passing.
Also more test passing in StdLibListTest.
2012-07-19 19:01:47 +04:00
Pavel V. Talanov 534bde52f1 Cache argument of when expression (should be evaluated only once). 2012-07-19 18:57:48 +04:00
Pavel V. Talanov cd2c55aeca Remove unnecessary code in IteratorForTranslator.
Introduce failOnEcma5 once again =(. One of tests fail due to kotlin_lib_v* details.
2012-07-19 18:57:47 +04:00
Pavel V. Talanov 63c42e13f9 Better messages for abstract function invocation in kotlin-lib.js.
Cosmetics in StdLibGetOrElseTest.
2012-07-19 18:57:46 +04:00
Pavel V. Talanov b45c14b0ab Explicit equals method for primitives and correct global equals method.
Includes cosmetics.
#KT-2372 Fixed
2012-07-18 17:15:27 +04:00
Pavel V. Talanov bd6f38021f Byte, Float, Short conversions. 2012-07-18 17:11:14 +04:00
Pavel V. Talanov c363d54d0a Number conversions. 2012-07-18 17:11:13 +04:00
Pavel V. Talanov aecb1ce5a7 Double conversions. 2012-07-18 17:11:12 +04:00