Commit Graph

241 Commits

Author SHA1 Message Date
Andrey Breslav 5eaa5b396b Removing usages of tuples from test data
(KT-2358 Drop tuples)
 #KT-2358 In progress
2012-09-18 20:27:09 +04:00
Andrey Breslav d6df227344 Fixing tests
This solution is in fact rather hackish, but the only way I see to fix it is to restructure the process of configuring test class paths altogether
2012-09-11 21:47:53 +04:00
Andrey Breslav 1b65ba644e JS Back-end does not handle complex patterns any more
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Pavel V. Talanov 04da2f453a Test for KT-2281.
#KT-2281 fixed
2012-08-31 14:35:54 +04:00
Pavel V. Talanov e6e6f7e598 Object's constructor is private from frontend point of view.
Test data changed.
Js-backend test objectInObject turned off.
Public constructors for objects hard-coded in jvm-backend.
2012-08-29 15:58:27 +04:00
James Strachan cbde1e1e46 added a little test case to see if using $ variables works in kotlin for JS generation (e.g. for angularjs support) 2012-08-22 16:17:40 +01:00
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 1165f2c502 Extract js-test-libs into separate project library. 2012-08-08 13:06:03 +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 17b85cbeed Use other version of JS ast by develar: changes to jars and xmls.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-07 13:35:46 +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