Commit graph

718 commits

Author SHA1 Message Date
efortuna@google.com
fac7fba1da Re-enable throwing if we try to set the unit test configuration twice.
BUG=

Review URL: https://codereview.chromium.org//13195004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20624 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 17:49:04 +00:00
efortuna@google.com
7c0d12b41c Remove throw from unittest.
BUG=

Review URL: https://codereview.chromium.org//13130005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20601 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 00:57:48 +00:00
nweiz@google.com
0831efdcdf Don't run stack_trace tests on Dartium.
Review URL: https://codereview.chromium.org//12980004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20593 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 22:34:12 +00:00
nweiz@google.com
829edfcfa6 Fix the stack_trace frame test on Windows as well.
Review URL: https://codereview.chromium.org//12681036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20588 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:57:31 +00:00
nweiz@google.com
e3fcad44c3 Fix Frame.location on Windows in pkg/stack_trace.
Review URL: https://codereview.chromium.org//12545080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20586 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:37:20 +00:00
nweiz@google.com
3697a04750 Add a library for manipulating stack traces.
Review URL: https://codereview.chromium.org//13102003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20582 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:15:55 +00:00
kevmoo@j832.com
9db4a1d02f pkg/logging: removed deprecated 'on' API
Review URL: https://codereview.chromium.org//12600033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20574 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 20:36:17 +00:00
scheglov@google.com
64f07b2a5e Tweak Resolver driver sample to prevent warning from new analyzer.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//13095014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20552 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 00:31:09 +00:00
efortuna@google.com
9ce0f4227d Allow 'empty' tests if a feature is not supported in the browser.
BUG=

Review URL: https://codereview.chromium.org//13046006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20530 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-26 18:43:33 +00:00
dgrove@google.com
9bf5ff3f54 Make path to meta go through pkg/ , so that it's rewritten properly.
Review URL: https://codereview.chromium.org//12512008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20479 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 20:03:01 +00:00
efortuna@google.com
020f085318 Temporary fix to get tests running again.
BUG=

Review URL: https://codereview.chromium.org//13030005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20478 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 20:03:01 +00:00
efortuna@google.com
d44ba6d3c0 "Reverting 20457"
BUG=

Review URL: https://codereview.chromium.org//12703019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20477 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 19:50:19 +00:00
nweiz@google.com
fb5790f273 Add a dependency on pathos from http.
BUG=9399

Review URL: https://codereview.chromium.org//12703016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20473 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 19:41:05 +00:00
kevmoo@j832.com
b684a1e7f0 pkg/unittest: config refactor
Make the configure method a setter (per existing TODO)

Review URL: https://codereview.chromium.org//12770017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20462 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 18:03:16 +00:00
kevmoo@j832.com
a707fd09fd pkg/unittest: removed html_layout_config
Review URL: https://codereview.chromium.org//13062005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20459 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 17:23:02 +00:00
kevmoo@j832.com
c21b5e3001 fix variable in catch statement
An oops after https://code.google.com/p/dart/source/detail?r=20051

Review URL: https://codereview.chromium.org//12729026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20457 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 17:17:38 +00:00
kevmoo@j832.com
e728737ccc pkg/unittest: eliminate unneeded var
Review URL: https://codereview.chromium.org//12983009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20440 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-24 17:36:24 +00:00
scheglov@google.com
7533136284 New Analysis Engine translation.
R=pquitslund@google.com
BUG=

Review URL: https://codereview.chromium.org//12803014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20420 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 22:13:50 +00:00
kevmoo@j832.com
1a6983771c pkg/intl: cleanup after message extraction test
call deleteGeneratedFiles after test
update deleteGeneratedFiles to cover all generated files

Review URL: https://codereview.chromium.org//12827019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20391 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 17:13:05 +00:00
alanknight@google.com
d2fe9fbb81 Set pkg.status for more Intl tests that crash the VM
Review URL: https://codereview.chromium.org//12897008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20356 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 21:54:24 +00:00
alanknight@google.com
5c7234a10b Suppress no_library_test on Dartium, which requires all tests wrapped
Review URL: https://codereview.chromium.org//12995003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20350 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 21:05:37 +00:00
alanknight@google.com
6ed8fcc992 Add test and fix for 9203, fix sdk dep, delete unused file.
Review URL: https://codereview.chromium.org//12604023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20346 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 20:40:17 +00:00
alanknight@google.com
da21fcd5d5 Update status file for intl test that sporadically crashes the VM
Review URL: https://codereview.chromium.org//12958003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20345 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 20:35:54 +00:00
nweiz@google.com
94073b77e4 Fix an outdated method call in example code for oauth2.
BUG=7675

Review URL: https://codereview.chromium.org//12787015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20341 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 18:50:59 +00:00
kevmoo@j832.com
699a7a7cb8 Fix for returned Futures in unittest
BUG=https://code.google.com/p/dart/issues/detail?id=9344

Review URL: https://codereview.chromium.org//12836007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20337 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 18:22:22 +00:00
kustermann@google.com
afeda4a8a8 Marked date_time_format_file_even_test as flaky
Review URL: https://codereview.chromium.org//12596013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20325 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 16:42:31 +00:00
sigmund@google.com
68a26315ef Move source maps package to the dart repo, so it can be used by other internal
tools.

Review URL: https://codereview.chromium.org//12207008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20300 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 23:41:50 +00:00
nweiz@google.com
7d365a2307 Cut down the default timeout in scheduled_test.
5s should be long enough to avoid any false positives while still timing out
well before test.py.

Review URL: https://codereview.chromium.org//12947003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20288 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 20:58:52 +00:00
nweiz@google.com
6cd9cee512 Provisionally stop working around issues 9252 and 9253.
We're removing these workarounds in the hopes that the pub tests won't resume
flaking. If they do, this CL should be rolled back.

Review URL: https://codereview.chromium.org//12879015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20286 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 19:49:05 +00:00
kevmoo@j832.com
1d9013517e Moved pkg pubspecs to use dev_dependencies where appropriate
BUG=https://code.google.com/p/dart/issues/detail?id=9309

Review URL: https://codereview.chromium.org//12962003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20285 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 19:41:10 +00:00
nweiz@google.com
876a1c0034 Properly collate multiple directory validation errors in scheduled_test.
BUG=9266

Review URL: https://codereview.chromium.org//12440054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20243 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 21:04:16 +00:00
alanknight@google.com
d98dc62e7d Parameterize the import directories, fix test to behave correctly on an error
Review URL: https://codereview.chromium.org//12478010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20241 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 20:53:26 +00:00
nweiz@google.com
90e03e6ac9 Miscellaneous small improvements for scheduled_test.
Review URL: https://codereview.chromium.org//12678011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20240 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 20:53:11 +00:00
ricow@google.com
b3d14f201d Mark pkg/scheduled_test/test/descriptor_test as flaky.
Filed 9266
Review URL: https://codereview.chromium.org//12621007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20227 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 18:21:06 +00:00
nweiz@google.com
8f7295dce7 Work around issue 9252 in scheduled_test and pkg/http.
Review URL: https://codereview.chromium.org//12540010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20187 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 00:25:05 +00:00
nweiz@google.com
94c07e5281 Change the way Patterns work in scheduled_test/descriptor.
Instead of every Entry being able to have a pattern as a name, now there's a
separate Pattern entry that encapsulates the logic of finding entries that match
a pattern.

The Pattern class also has different semantics than the old pattern names. The
old semantics required only one filesystem entity with a name matching the
pattern; now any number are allowed, as long as only one of them matches the
Entry (that is, has the expected contents).

Review URL: https://codereview.chromium.org//12853005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20185 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 23:24:09 +00:00
alanknight@google.com
6bda92055d Update Intl's json data file generation to current APIs
Review URL: https://codereview.chromium.org//12918018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20182 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 22:47:42 +00:00
scheglov@google.com
1dd8b25904 Fix analyzer_experimental.
TBR

Forgot to comment out Resolver tests :-(

R=pquitslund@google.com
BUG=

Review URL: https://codereview.chromium.org//12529022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20179 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 21:28:22 +00:00
scheglov@google.com
1c4bc14d27 analyzer_experimental checkpoint and AnalysisContext example.
R=pquitslund@google.com
BUG=

Review URL: https://codereview.chromium.org//12604020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20178 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 21:17:54 +00:00
ngeoffray@google.com
124e5a1bf1 We might have hit the same safari bug again.
Review URL: https://codereview.chromium.org//12905004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20161 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 14:50:59 +00:00
ricow@google.com
25850a01ec Mark scheduled_test/test/scheduled_test_test slow
I have filed dartbug.com/9231
Review URL: https://codereview.chromium.org//12917004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20160 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 14:13:46 +00:00
iposva@google.com
cdcb3e5b09 - Make test code fail when run from unexpected location.
Review URL: https://codereview.chromium.org//12787011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20122 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:14:07 +00:00
rnystrom@google.com
affd53983e Fix escaping in YAML RegExp.
This was causing it to try to parse "m4" as a number, which fails.
Fixes #9128.
BUG=

Review URL: https://codereview.chromium.org//12876003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20107 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:48:26 +00:00
scheglov@google.com
d7729fdac6 Update generated analyzer_experimental for new List interface.
R=pquitslund@google.com
BUG=

Review URL: https://codereview.chromium.org//12603007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20103 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:13:21 +00:00
alanknight@google.com
52f0f0a262 Add issue number to failing test
Review URL: https://codereview.chromium.org//12752005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20100 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 18:35:31 +00:00
blois@google.com
343f7c001e Tweaking html_config to stabilize location test.
I believe that changes I made recently to html_config may have destabilized the html/location_test. Basically the location_test does a hash change and when this test is run after other tests, it may be causing a browser reload.

I'd actually like to refactor the printing of the results completely to build them programmatically (and clean them up?), but this is a larger change.

BUG=

Review URL: https://codereview.chromium.org//12890002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20092 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 16:53:39 +00:00
floitsch@google.com
f85fa4feff Make argument to StringSink.writeln optional.
BUG= http://dartbug.com/9102

Review URL: https://codereview.chromium.org//12870003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20074 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 12:45:40 +00:00
lrn@google.com
844cd39fad Change getRange to sublist. Make getRange deprecated.
This changes the exception behavior of getRange. It used to accept
a length of zero, no matter what start value. Now the start value
must be a valid list index.

Review URL: https://codereview.chromium.org//12817003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20064 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 09:15:39 +00:00
alanknight@google.com
16a944bce1 Change status file for intl test with encoding issue on Windows
Review URL: https://codereview.chromium.org//12630013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20058 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 00:08:56 +00:00
nweiz@google.com
6a22d28a86 Add the ability to abort a scheduled test.
Review URL: https://codereview.chromium.org//12753005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20056 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 22:37:41 +00:00