Commit Graph

79322 Commits

Author SHA1 Message Date
ager@google.com 6b73da258c Implement 'compact' progress indicator.
At this point it is not that compact because print always prints
a newline and therefore we cannot reuse the same line in the output.
I will update that when we have access to stdout stream.

Removed asserts that fail when test script is run from runtime
directory.

Removed debugging output from status file parsing.

R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8523009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1452 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:24:02 +00:00
ager@google.com 5d40fb2a9f Fix type mismatch errors. Environments do not only contain strings.
R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8539009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1451 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 09:37:08 +00:00
ager@google.com 187e1cd2ab Use the configuration for determining the binary to use for testing.
So far supporting components vm and dartc.

Also, use the actual configuration for status file parsing.

R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8540002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1450 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 09:27:51 +00:00
sigmund@google.com 74be8dd6b3 skip swarm and dartcombat in frogium - sometimes they timeout
Review URL: http://codereview.chromium.org//8511054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1449 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:50:00 +00:00
antonm@google.com e59348461d total_tests are passing now.
Review URL: http://codereview.chromium.org//8491037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1448 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:35:03 +00:00
antonm@google.com f8eb259b8d Defer further starting timeout watch dog.
Recent changed made DOMContentLoaded event to fire before than
Dart application is ready to run.  Therefore the safest bet
timeout watchdog is to wait until the document is fully loaded.

This reverts commit 162f93c5b4def3f2cac2aa1b00fa1d510d1e9940.

Review URL: http://codereview.chromium.org//8525005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1447 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:23:05 +00:00
sigmund@google.com 5cec1f4072 fix co19 tests - updates that I didn't catch after merging with John's cl
Review URL: http://codereview.chromium.org//8539003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1446 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:22:38 +00:00
sigmund@google.com 03058faa90 Enable frogium test in bots, and fix checked mode on co19 tests.
Review URL: http://codereview.chromium.org//8523027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1445 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:02:24 +00:00
sigmund@google.com 44df0ac719 Mark more tests as flaky (they seem to be around the timeout borderline)
Review URL: http://codereview.chromium.org//8527021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1444 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:37:24 +00:00
jmesserly@google.com 488fa4dd32 Adds typechecking of return values
Also fixes places in frog where we were returning things from "void" methods.

Review URL: http://codereview.chromium.org//8534001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1443 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:36:15 +00:00
sigmund@google.com 6a6fd9cc23 typo in my last cl.
TBR=vsm

Review URL: http://codereview.chromium.org//8524021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1442 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:21:52 +00:00
sigmund@google.com 926a46185f Skip view_tests, until we figure out why they are flaky.
Review URL: http://codereview.chromium.org//8515028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1441 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:14:58 +00:00
sigmund@google.com e024570e01 Adding frogium: a frog-chromium architecture that runs tests in chromium that
were compiled with frog.

Review URL: http://codereview.chromium.org//8523024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1440 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:07:02 +00:00
sigmund@google.com 3a14a5e215 fix .status for dartium tests.
Review URL: http://codereview.chromium.org//8526025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1439 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 01:36:39 +00:00
srdjan@google.com f61f3d99ed Dartium debug mode runs with VM in release mode.
Review URL: http://codereview.chromium.org//8469020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1438 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 01:29:14 +00:00
sigmund@google.com 180456ce0b convert html.dart to dart:html in all client samples.
Review URL: http://codereview.chromium.org//8526024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1437 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 01:24:59 +00:00
efortuna@google.com 87b9e83041 Adding in-browser correctness testing via selenium.
Do not, I repeat, DO NOT enable these to run by default on the buildbot yet
(Currently they do not run by default). I am checking this in in its raw state
so that my fellow frog developers can start making fixes to frog for running in
other browsers. You can run these test by running: 

Install WebDriver stuff by following these instructions:
http://code.google.com/p/selenium/wiki/PythonBindings

Then start the server:
java -jar selenium-server-standalone-2.11.0.jar -browserSessionReuse

../tools/test.py --component=webdriver --report --timeout=10 --progress=color
--mode=release language

Frog generates code that fails in Firefox, but passes in Chrome (for example). We
need to fix this eventually, but it shouldn't cause our entire tree to turn red.
Note also that to run selenium, you will need to install the selenium python
library, and ChromeDriver.
Review URL: http://codereview.chromium.org//8469016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1436 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 01:24:50 +00:00
iposva@google.com 57a14228e3 - Don't run meaningless tests.
Review URL: http://codereview.chromium.org//8526021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1435 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 00:28:27 +00:00
srdjan@google.com bc3a18b330 Fix test.
Review URL: http://codereview.chromium.org//8523017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1433 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 22:45:31 +00:00
srdjan@google.com f94b8b0095 Fix failures.
Review URL: http://codereview.chromium.org//8525013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1432 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 22:37:38 +00:00
srdjan@google.com b6be92c2b3 Add FactoryNegativeTest.
Review URL: http://codereview.chromium.org//8525010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1431 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 22:25:44 +00:00
jimhug@google.com 90cd616329 Adds source information to all values (with no detectable perf impact). Uses Value more consistently for operations in gen. Starts down the path of cleaning up this type.
Review URL: http://codereview.chromium.org//8523012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1430 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 22:23:18 +00:00
asiva@google.com 2d388b751f Cache isolate in the StackTrace object to that we don't call
Isolate::Current in the destructor, HandleScope and Zone.
TBR=iposva (already reviewed change on other client).
Review URL: http://codereview.chromium.org//8523013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1427 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 21:08:18 +00:00
zundel@google.com 117fc65a17 This change refactors TypeAnalyzerTest so that it only includes the
test cases.  The infrastructure is moved to a superclass.  I want to use
this in Compile Time Constant testing.

Review URL: http://codereview.chromium.org//8515010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1424 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 20:53:16 +00:00
turnidge@google.com 309d4efee7 Windows produces different output for __FUNCTION__. Canonicalize.
Review URL: http://codereview.chromium.org//8524006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1423 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:48:55 +00:00
hausner@google.com 08d42a2749 Triage 2 co19 tests
The tests assume that multi-line comments do not nest. That's wrong,
the tests should be eliminated.

Filed http://code.google.com/p/co19/issues/detail?id=23
Review URL: http://codereview.chromium.org//8525003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1422 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:43:13 +00:00
turnidge@google.com ff7a5f4786 Try __func__ -> __FUNCTION__
Review URL: http://codereview.chromium.org//8515007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1420 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:34:54 +00:00
srdjan@google.com dcdbc97919 Intrinsify StringBase.isEmpty and inline StringBase.get:length.
Review URL: http://codereview.chromium.org//8526005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1419 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:33:25 +00:00
turnidge@google.com 43e5bf131b Give up on using va_copy for now and get the build working.
Review URL: http://codereview.chromium.org//8469004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1418 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:29:02 +00:00
turnidge@google.com bd63578bb4 Include <stdarg.h>
Review URL: http://codereview.chromium.org//8524004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1416 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:18:25 +00:00
turnidge@google.com 47dff8904d Here's a template for how I plan on doing error-checking on inputs for
dart api functions.

Any comments before I change everything?

Any way I could get away without creating the extra Object handle by
doing sneaky tricks?
Review URL: http://codereview.chromium.org//8507035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1415 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 19:10:53 +00:00
antonm@google.com 68e902a530 Suppress more tests.
Review URL: http://codereview.chromium.org//8528001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1412 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 18:08:35 +00:00
srdjan@google.com da9092146b Implement %= and assign a couple of tests.
Review URL: http://codereview.chromium.org//8509032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1411 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 18:04:42 +00:00
sigmund@google.com c9b45e186b Fix unittest - fix error in the error reporting code.
Review URL: http://codereview.chromium.org//8515004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1410 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 17:57:08 +00:00
olonho@google.com f55292db92 Suppress broken tests.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1409 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 17:36:01 +00:00
srdjan@google.com af451865ed For instanceof inline check against right hand class id possible and interface String for OneByteString (positive checks only). Improves frog runtime by about 20%. Future work will be based on collecting types and using that data in optimized code. Add tracing of instance of type checks.
Review URL: http://codereview.chromium.org//8508035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1408 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 17:28:11 +00:00
whesse@google.com 02b001fbaf tools/test.dart: Read test expectations from the status file, and pass them to the test runner.
BUG=
TEST=tools/test.dart

Review URL: http://codereview.chromium.org//8514003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1407 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 17:13:45 +00:00
sgjesse@google.com 6efd258f7c Set closed for read state on a socket when indicated by the system
Without setting this state sockets would not always be closed
automatically when the input stream is read to the end and the output
stream is closed.

R=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8513006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1406 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 16:35:55 +00:00
ager@google.com a427f80ccc Getting started on options parsing.
Support the most common options. So far only the --tasks/-j option
is actually used.

R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8508054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1405 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 16:14:06 +00:00
ahe@google.com 40608f24e7 Create class AST nodes.
Review URL: http://codereview.chromium.org//8508016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1399 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 14:43:28 +00:00
floitsch@google.com d0dedfdffc Throw and a small fix to If.
If fix is slightly hacky, but should go away with our refactoring.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8513004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1398 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 14:07:06 +00:00
ahe@google.com 398d695929 Update co19-frog.status.
Review URL: http://codereview.chromium.org//8462011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1393 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 12:29:16 +00:00
ahe@google.com 1b4e839fec Handle co19 @dynamic-type-error better.
Review URL: http://codereview.chromium.org//8518002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1392 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 12:12:19 +00:00
jmesserly@google.com c56b0f90a4 Restore r1383: Fix method resolution to warn about things that don't exist on the declared type. Only change from previous rev is fixed co19 status file.
There are some new failures in "negative" tests, but they're now failing for the right reason instead of failing because Frog generated incorrect code. They're passing (i.e. throwing the right runtime type error) if I pass --enable_type_checks. So we just need to get that hooked up somehow.

Review URL: http://codereview.chromium.org//8478025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1389 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 10:10:31 +00:00
ahe@google.com 4a984f9cc2 Tweak co19 status for frog and dartc.
Review URL: http://codereview.chromium.org//8514002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1388 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 09:44:04 +00:00
ahe@google.com 6090bd39d3 Fix syntax error in co19-*.status.
Review URL: http://codereview.chromium.org//8513001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1387 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 09:31:09 +00:00
ahe@google.com d3b53c1ba5 Don't mark @static-type-errors as negative tests.
Review URL: http://codereview.chromium.org//8509014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1386 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 09:12:09 +00:00
ager@google.com 9c4626a481 Increase TestRunnerTest timeout to two seconds.
There has been one timeout (debug, checked) because it took 1.1 seconds.

R=sgjesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8508050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1385 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 07:51:20 +00:00
regis@google.com a6282231eb Revert r1380 that is breaking frog.
Review URL: http://codereview.chromium.org//8509031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1382 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 01:39:06 +00:00
iposva@google.com 1e203b2dc9 - Move the RuntimeOptions implementation into the shared library
code. It has no dependency on the VM.
Review URL: http://codereview.chromium.org//8505043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1381 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 01:28:51 +00:00