Commit Graph

25510 Commits

Author SHA1 Message Date
kevmoo@j832.com 94440ef3c7 pkg/unittest: no need to expose the errorHandler helper
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24654 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 20:19:12 +00:00
nweiz@google.com 7b0ae79768 Use package:stack_trace in unittest.
R=gram@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24652 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 20:10:54 +00:00
janicejl@google.com 7bc80248f7 added a catch error to avoid printing a stack trace when it fails to create a mirror system.
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24650 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 19:58:37 +00:00
janicejl@google.com bf625fa3eb Added a flag package-root for users to define where the package directory is.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24647 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 19:43:36 +00:00
gram@google.com 1d096d0062 Changed the code for running a test case to make beter use of dart:async.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24643 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 18:57:17 +00:00
nweiz@google.com ec95277971 Mark stack_trace/trace_test as timing out on dart2js minified.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24641 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 18:40:26 +00:00
gram@google.com 2053f51580 Skip negative mock tests in analyzer.
See https://code.google.com/p/dart/issues/detail?id=11517

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24637 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 18:05:53 +00:00
scheglov@google.com 8b0684be54 New analyzer_experimental snapshot.
R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24613 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 22:34:01 +00:00
nweiz@google.com 031c343cae Add a couple functions to package:stack_trace.
This adds a function to convert a Trace to a VM-style StackTrace
object, and to parse a Trace-style string into a Trace.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24611 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 22:24:01 +00:00
janicejl@google.com b32cd7c3f8 Added annotations and outputs the qualified name of the annotation.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24594 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 16:22:00 +00:00
ajohnsen@google.com 72219cf60b Don't test links on windows, for http_server.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24589 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 13:37:38 +00:00
ajohnsen@google.com 4d6cde0779 Add directory-listing to VirtualDirectory.
BUG=
R=sgjesse@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24584 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 12:49:31 +00:00
nweiz@google.com 173e2ecdd7 pkg/stack_trace/vm_test shouldn't fail on Dartium.
Review URL: https://codereview.chromium.org//18110009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24572 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 02:08:12 +00:00
nweiz@google.com 83d0bc07d2 Properly handle empty stack traces in package:stack_trace.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24571 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 01:50:01 +00:00
nweiz@google.com e91e9182c5 Add support for V8 and Firefox stack traces in pkg/stack_trace.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24569 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 01:22:36 +00:00
jmesserly@google.com c326893f6a Continue updating MDV.
add OPTGROUP as an attribute template -- https://github.com/Polymer/mdv/commit/af1733d905ac96852357db5e7a78a63ba2a488fc
template ref should check treeScope.getElementById -- https://github.com/Polymer/mdv/commit/7de0697e318bb001e1649005ec48eb294edad6e4
Use correct event type for checkbox bindings -- https://github.com/Polymer/mdv/commit/2c675cab75aea2ef3d1b981a616469587b9210fe

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24562 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 23:30:33 +00:00
janicejl@google.com fe05118241 Escaping backslashes.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24559 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 22:23:29 +00:00
jmesserly@google.com a248439bf9 implement full DOM stability
Port of https://github.com/Polymer/mdv/commit/3e0b8ebe1d431b80cd92b40c4ce7e29ef086d555

Also includes a follow up that fixed a bug in the original CL:
Dont unbind instance nodes that have been re-used from the instanceCache
https://github.com/Polymer/mdv/commit/033257abab40e404924c844db8a1a7551571e4ba

(Note: this is based on https://codereview.chromium.org/17706003/)

R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24553 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 21:35:35 +00:00
janicejl@google.com e505d44db4 moved everything inside of the Docgen class into top level variables and functions. Also made most of the helper functions private.
This should aid unit testing as it would be possible to create a mirror system separately, and also generate one library object separately without everything being chained together by the docgen class.

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24550 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 21:11:57 +00:00
jmesserly@google.com fca7d29b2c Disallow template instances when !parentNode || !owner.defaultView https://github.com/Polymer/mdv/commit/d035acecab7c2d1afd9eb67bb01818d7ed9eb11f
extract template element from attribute templates. https://github.com/Polymer/mdv/commit/13741f22d94cec1d7ca115f023cf3a25b9245def

Note: this is based on https://codereview.chromium.org/17552019/ (reorg mdv)

R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24546 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 19:59:04 +00:00
amouravski@google.com 5089f391d2 Revert "Add support for V8 and Firefox stack traces in pkg/stack_trace."
This reverts commit r24502.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24506 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 02:16:12 +00:00
regis@google.com 0c93466054 Hide parent function name in name of closurized function to user (issue 5436).
Hide implicit parameter of closure to user.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24504 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 00:49:49 +00:00
nweiz@google.com a92a52a4ff Add support for V8 and Firefox stack traces in pkg/stack_trace.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24502 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 00:28:28 +00:00
jmesserly@google.com d6b9207588 Reorganize mdv and observe functionality
* keep correct dart:html APIs
* move implementation into package:mdv and package:observe
* remove dart:mdv_observe_impl
* remove getValueWorkaround/setValueWorkaround from package:observe

R=blois@google.com, floitsch@google.com, justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24498 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 23:25:47 +00:00
kevmoo@j832.com 11ccfad71b pkg/serialization: add format param to Serialization.read method
Made read/write params named instead of positional

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24487 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:34:52 +00:00
janicejl@google.com b1c5a2c197 Refactoring docgen to make it more unit testable.
broke up a few other functions to be smaller and only do one thing (mostly).

separated documentLibraries into 3 smaller functions that returns things so that it can be unit tested.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24486 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:08:57 +00:00
janicejl@google.com 824ab9a487 outputs a new file called library_list.txt which will let the viewer know what libraries are available
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24478 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 17:14:36 +00:00
janicejl@google.com 7dc47c68d0 Getting docgen to work with the SDK.
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24477 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 17:04:41 +00:00
ricow@google.com d4ab0bdbe2 Revert revision 24444, pkg/unittest/test/unittest_test is still flaky timing out on firefox
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24454 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 07:53:51 +00:00
scheglov@google.com 92dd5f0e42 Triage pkg and standalone tests.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24446 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 03:02:18 +00:00
gram@google.com be0b406aa6 Re-enable unittest_test on Firefox. I think the timeout issues was fixed in
r24439.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24444 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 23:58:03 +00:00
gram@google.com 50d7725e97 Fix an error and a warning in unittest.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24439 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 23:00:33 +00:00
janicejl@google.com 8e081d2f0e finds packageDir from the returned list from listDir.
used pathos package and moved to listDir from pub/lib/src/io.dart

moved listLibraries into the docgen class, and changed return type to Strings.

R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24434 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 21:38:13 +00:00
janicejl@google.com 0bbe2c4920 Added --exclude-lib=docgen so that it does throw an error about markdown when building.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24421 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 16:49:11 +00:00
sgjesse@google.com 887c8e7596 Move getters from Options to Platform
The getters for executable, script and version are now statics on
Platform. I kept them on Options for now, but updated most tests to
use Platform.

R=ajohnsen@google.com, floitsch@google.com, iposva@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24401 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 12:56:23 +00:00
ricow@google.com 2b7ee700b9 Mark unittest_test as flaky timing out on firefox, not flaky failing
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24390 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 09:59:15 +00:00
ricow@google.com 4e57b11976 Mark pkg/unittest/test/unittest_test as flaky timing out on firefox
Filed issue 11473

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24383 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 07:34:30 +00:00
ajohnsen@google.com 94f6029199 Add error-page support in VirtualDirectory.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24378 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 06:00:19 +00:00
janicejl@google.com e740b1bfd0 "Reverting 24368"
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24369 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 21:48:39 +00:00
janicejl@google.com 1bc841e74e docgen working with a temporary link hack.
added checking the environment varaible DART_SDK first, just like how pub does it, also added checking for null in constructor of docgen.

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24368 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 21:36:06 +00:00
amouravski@google.com 2e5ee49022 Added the continueParsing option to ArgParser.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24366 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 20:55:13 +00:00
kasperl@google.com a944ac501c Update status files after inlining change.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24356 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 18:23:01 +00:00
kustermann@google.com 8356c667db Added async_helper and fixed broken asynchronous test.
R=ahe@google.com, efortuna@google.com, floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24339 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 15:47:00 +00:00
ajohnsen@google.com 9f9d785362 Fix 'part of' for mime package.
BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24331 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 13:14:00 +00:00
ajohnsen@google.com 53badd793a Add auto-detection of MIME-type in VirtualDirectory.
Default charset for text/* is still missing.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24328 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 13:05:39 +00:00
floitsch@google.com 48b1656690 Allow Object when doing lookups.
According to our typing rules a Set<Apple> is a Set<Fruit>. However, before this change, we couldn't use it as a Set<Fruit>:

===
bool foo(Set<Fruit> fruits) {
  // Would yield a type-error since we actually got a Set<Apple>.
  return fruits.contains(new Banana());
}

foo(new Set<Apple>());
===

R=ajohnsen@google.com, blois@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24326 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 12:45:10 +00:00
ajohnsen@google.com 8e5b350649 Add a new MIME-type package 'mime', with implementation for handling mime-type lookup by path (finename extension) and magic-number matching.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24324 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 11:55:49 +00:00
lrn@google.com 54bd4df5de Make unmodifiable_collection test import of self use package:-uri.
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24320 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 10:31:13 +00:00
ajohnsen@google.com c9b66a7973 Add new VirtualHost class to http_server package, for handling multiple hosts on multiple sources (HttpServer's).
It uses a by-name aproach, and thus depends on the host field to be
present.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24318 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 10:07:19 +00:00
ajohnsen@google.com 0539f11c4a Add support for IfModifiedSince headers, in http_servers' VirtualDirectory.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24314 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 09:23:33 +00:00