7458 Commits

Author SHA1 Message Date
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
James Strachan b8bdc55ed1 added a link to the JS example 2012-07-19 14:04:50 +01:00
Pavel V. Talanov 9a28f580bb Move NO_INTRINSIC to FunctionIntrinsic 2012-07-18 17:15:55 +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 e0651de9ed Extend CompositeFIF instead of using FIFBuilder. 2012-07-18 17:11:16 +04:00
Pavel V. Talanov 71071595fa Pattern -> DescriptorPredicate, NameChecker -> NamePredicate. 2012-07-18 17:11:15 +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 69cbf65d62 Move error reporting util from CallStandardMethodIntrinsic to ErrorReportingUtils. 2012-07-18 17:11:12 +04:00
Pavel V. Talanov aecb1ce5a7 Double conversions. 2012-07-18 17:11:12 +04:00
Pavel V. Talanov 3cd406a155 Integer conversions (to* methods).
Add NumberTest, NumberConversionFIF.
2012-07-18 17:11:11 +04:00
Pavel V. Talanov 459802e726 Reapplied Dmitry's changes to util methods 2012-07-18 17:11:10 +04:00
Pavel V. Talanov 239cb25348 Enable JsUnitTestReporter test since teamcity is fixed. 2012-07-18 17:11:09 +04:00
Pavel V. Talanov 62ad7a9b17 Finishing refactoring intrinsic. Implemented most of FunctionIntrinsics and basic BinaryOperationIntrinsics.
All test pass, need to add tests for type conversion operation though.
2012-07-18 17:11:08 +04:00
Pavel V. Talanov 961260c5c5 Intrinsic -> FunctionIntrinsic
Introduce FunctionIntrinsicFactory (unused atm)
2012-07-18 17:11:07 +04:00
James Strachan a3d30409d3 added more descriptive assertion failure 2012-07-16 13:47:44 +01:00
Dmitry Jemerov 1ac60dae5e don't use PSI for calculating the type of first argument of trait function implementation 2012-07-13 16:12:33 +02:00
Andrey Breslav 8d6fd3a18b Base classes for tests put into order:
* KotlinTestWithEnvironmentManagement — methods for creating envirnoments tied up to test root disposable (automatically disposed on teadDown())
* KotlinTestWithEnvironment — a test with one environment (created by an abstract method)

Also, utilities for laz yresolve tests moved to LazyResolveTestUtil
2012-07-11 12:51:58 +04:00
Pavel V. Talanov 112cd24079 Comment out tests failing the build 2012-07-09 19:09:25 +04:00
Pavel V. Talanov 20dc05e679 Use soft reference for expensive cash in TranslationUtils
Also move member in RhinoUtils
2012-07-09 19:09:24 +04:00
Andrey Breslav 1f95636bdf Injectors regenerated 2012-07-09 13:39:03 +04:00
Pavel V. Talanov 3d58d1ec16 Explicit equals call on non nullable receiver 2012-07-09 13:09:47 +04:00
Pavel V. Talanov 3814384762 Isolate error reporting
Introduce ErrorReportingUtils
2012-07-09 13:09:44 +04:00
Pavel V. Talanov 1840602a46 Trying to run stdlib unit tests as part or js.tests: step 4 - Added tests for ListTest, GetOtElseTest, MapTest
Introduce JsUnitTestReporter, implement communication between rhino and junit
2012-07-09 12:40:15 +04:00
Pavel V. Talanov 0c2b8e95f2 Trying to run stdlib unit tests as part or js.tests: step 3 - use TestConfigFactory to provide information about JsTester 2012-07-09 12:40:14 +04:00
Pavel V. Talanov 1ccbf24172 Trying to run stdlib unit tests as part or js.tests: step 2 2012-07-09 12:40:13 +04:00
Pavel V. Talanov ec7b0a1d3a Trying to run stdlib unit tests as part or js.tests: first step 2012-07-09 12:40:12 +04:00
Pavel V. Talanov 5683ee456f TestGenerator -> JSTestGenerator, extract single test generation functionality to a separate class 2012-07-09 12:40:12 +04:00
Evgeny Gerashchenko 97dfd74647 Replaced creating compiler configuration for useless "js" configuration with empty compiler configuration. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b65f5cf53f Removed CompilerSpecialMode from JetCoreEnvironment. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e82ab70bc Got rid of using CompilerDependencies in JetCoreEnvironment. CompilerConfiguration is passed instead. 2012-07-07 23:07:17 +04:00
James Strachan 96a7128a36 added test case for KT-2374 2012-07-06 08:34:35 +01:00
James Strachan 33ef414f01 added tests so we can easily run QUnit tests in headless mode inside a stand alone JUnit test without Selenium; with just Rhino. JsArrayTest works great in Rhino stand alone and in a browser; but not Selenium; not sure why yet... 2012-07-05 21:40:06 +01:00
James Strachan e9ed7b6d2a add more array based tests and JS compliant typesafe array constructor functions 2012-07-05 16:27:39 +01:00
James Strachan 4671e2b853 better diagnostics on failures 2012-07-05 16:27:14 +01:00
James Strachan b4dace2c29 added a native array() function for the JS generation; also refactored the code generated collection APIs so that most of them can be used with JavaScript and included more array based APIs into the JS generation 2012-07-05 15:49:10 +01:00
James Strachan 6863526d52 added test case for KT-2372 2012-07-05 14:16:20 +01:00
Pavel V. Talanov 3073af99db Revert changes pushed by mistake 2012-07-05 16:53:48 +04:00
Pavel V. Talanov 39a8a90175 Use K2JSTranslator in StdLibTestBase, add copyright to ClassAliasingMap 2012-07-05 16:25:34 +04:00
Pavel V. Talanov 6354d1bae0 Custom equals operator (includes little patch to frontend)
#KT-2354 fixed
2012-07-05 16:25:33 +04:00
James Strachan 88a38d9b5b added equals() and toString() methods for AbstractList 2012-07-05 13:07:04 +01:00
James Strachan af4cdb38df removed bogus test case for KT-2355 which isn't an issue any more 2012-07-05 12:07:36 +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