amouravski@google.com
ad74dd0131
Added the CanvasImageSource interface, which all types that a canvas can draw
...
with drawImage implements.
Review URL: https://codereview.chromium.org//12775010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20108 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:54:50 +00:00
blois@google.com
26b77f96ab
Adding a model property to Node which is inherited through the tree.
...
This only works for trees which are in the document, but when a tree is added to the document everything should just 'start working'.
This should work on all browsers (tested on Chrome, FF and IE9).
Not sure about performance impact on large trees and lots of bindings (balance between optimizing for lots of bindings or lots of elements, few bindings), but it should not impact anything if models are not used.
BUG=
Review URL: https://codereview.chromium.org//12754013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20104 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:22:24 +00:00
sgjesse@google.com
b19bfba0b5
Fix manual starting of test runner HTTP servers
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12831010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20077 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 13:21:38 +00:00
sgjesse@google.com
d6955d176c
Reapply "Update the test runner to use the new dart:io API"
...
This reverts r20031.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12751005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20070 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 11:13:39 +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
kustermann@google.com
8621bd99fb
Use the lowest MacOS SDK available on a system
...
Review URL: https://codereview.chromium.org//12672003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20062 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 08:39:31 +00:00
devoncarew@google.com
0cc0f798ce
Tweaks to the new_analyzer test suite to not run the dartc unit tests.
...
Review URL: https://codereview.chromium.org//12833007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20044 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 19:53:49 +00:00
floitsch@google.com
a1029cb537
Fix after bad merge.
...
Review URL: https://codereview.chromium.org//12432017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20041 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 18:05:19 +00:00
floitsch@google.com
76d507cb6f
Add List.insert.
...
BUG= http://dartbug.com/5375
Review URL: https://codereview.chromium.org//12383073
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20037 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 17:38:14 +00:00
sgjesse@google.com
f5270bf202
Revert "Update the test runner to use the new dart:io API" again
...
This reverts r20027 and r20029
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12475010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20031 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 15:38:18 +00:00
sgjesse@google.com
fdaca2fe83
Revert "Update the test runner to use the new dart:io API" again
...
This reapplies r20004 and r20008 and fixes a HTTP server issue.
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12431020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20027 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 15:24:36 +00:00
sgjesse@google.com
3e2ffb4394
Revert "Update the test runner to use the new dart:io API" again
...
This reverts r20004 and r20008.
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12559013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20009 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 12:13:37 +00:00
lrn@google.com
9de16edc1c
Fix CssClassSet methods to accept Set, not Collection.
...
Review URL: https://codereview.chromium.org//12493014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20006 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 11:54:04 +00:00
sgjesse@google.com
db7821cdf3
Reapply "Update the test runner to use the new dart:io API"
...
The Linux binary will work on the bots. Fixed a number of issues.
The new binaries are from r19850.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12608007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20004 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 11:39:20 +00:00
lrn@google.com
5768211906
Make Set.containsAll accept Iterable. Deprecate Set.isSubsetOf.
...
This is a recommit of the earlier reverted CL with updated test expectations.
Review URL: https://codereview.chromium.org//12544024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19993 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 09:32:30 +00:00
sgjesse@google.com
78403ce605
Revert "Update the test runner to use the new dart:io API"
...
This reverts commit r19987.
The included binaries did not work on the bots due to a glibc version issue.
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12864003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19988 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 08:08:56 +00:00
sgjesse@google.com
7ff44f77ac
Update the test runner to use the new dart:io API
...
The new binaries are from r19850.
R=whesse@google.com , ager@google.com , ricow@google.com , kustermann@google.com
BUG=
Review URL: https://codereview.chromium.org//12417004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19987 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 07:54:07 +00:00
sigmund@google.com
4964fd0ef9
Remove special treatment of analyzer-experimental in publish_pkg.
...
Now that analyzer-experimental is renamed (see
https://code.google.com/p/dart/issues/detail?id=9071 ), we can remove the fix for
it in tools/publish_pkg.py
Review URL: https://codereview.chromium.org//12747004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19975 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 21:54:55 +00:00
blois@google.com
a2a7fb6b2b
Making dom.py build command only build the runtime.
...
This is what it was intended to do, but I never knew how to do it. It's also what the 'help' documentation states that it does.
BUG=
Review URL: https://codereview.chromium.org//12733006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19963 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 19:18:13 +00:00
devoncarew@google.com
a4a72c29ca
Updates to the new analyzer to help make the try bot happy.
...
Review URL: https://codereview.chromium.org//12438007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19946 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 17:06:20 +00:00
kustermann@google.com
f5a43cdd40
Added missing import statement to tools/test-runtime.dart
...
Review URL: https://codereview.chromium.org//12517006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19944 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 16:39:16 +00:00
blois@google.com
1b585cb07b
Attempting to remove ArrayBufferView.buffer penalty.
...
BUG=
Review URL: https://codereview.chromium.org//12447016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19939 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 15:38:30 +00:00
antonm@google.com
dcc492f77e
Enable print forwarding.
...
R=ager@google.com ,ahe@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12712006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19920 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 10:58:28 +00:00
ricow@google.com
ad5da2d318
Add support for the new analyzer to the testing scripts
...
Review URL: https://codereview.chromium.org//12776004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19885 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 18:18:26 +00:00
kustermann@google.com
4924f73340
Bugfix in test_progress.dart after refactoring
...
TBR=ricow
Review URL: https://codereview.chromium.org//12728005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19881 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:37:28 +00:00
floitsch@google.com
65718c56df
Rename XMatching to XWhere.
...
For example firstMatching -> firstWhere.
BUG= http://dartbug.com/8664
BUG= http://dartbug.com/8337
Review URL: https://codereview.chromium.org//12537009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19880 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:34:49 +00:00
kustermann@google.com
53497f0c2c
Refactoring of ProgressIndicator
...
Currently ProcessQueue creates and depends on exactly ONE ProgressIndicator.
This is not optimal for the following reasons:
a) The used ProgressIndicator has several responsibilities (printing timing information,
setting 'io.exitCode', printing test failures, ...)
Splitting these responsibilities into different classes makes the code cleaner and more testable.
b) If we make ProcessQueue depended on an abstract EventListener object (or a list of them) and make
it send events to those listeners would make it easier to test ProcessQueue itself.
Issue: 8095
Review URL: https://codereview.chromium.org//12302016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19867 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 14:09:05 +00:00
antonm@google.com
f438ac1d31
Maintain proper signature_index.
...
R=ager@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12660007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19851 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 11:38:30 +00:00
antonm@google.com
4ec687fb7c
Proper catch clause.
...
TBR=asiva@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12524006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19847 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 10:19:11 +00:00
antonm@google.com
2fe3050460
Make sure double to DateTime conversion never throws.
...
R=asiva@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12493011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19845 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 09:51:23 +00:00
antonm@google.com
72dd746b39
Ensure proper order of overload checks.
...
As dart:typeddata's class can implement both counterpart
of ArrayBufferView and of ArrayBuffer, always favour
treatment of an argument as an ArrayBufferView.
R=ager@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12518013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19842 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 09:04:38 +00:00
blois@google.com
7119f07f96
Fixing Node.nodes.first.
...
Was throwing an incorrect exception because the JS type was being annotated as non-null.
BUG=9070
Review URL: https://codereview.chromium.org//12513010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19834 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:59:02 +00:00
blois@google.com
3dc9e79521
Consolidating platform code into dart:html_common
...
Basically a number of our platform checks are only accessible from dart:html and not other libs. Moved Device class over to html_common and added more platform logic which was distributed elsewhere.
Also fixing up Device to cache the platform checks.
BUG=
Review URL: https://codereview.chromium.org//12541020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19833 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:49:27 +00:00
blois@google.com
30764d4a5b
Was benchmarking the differences between document.query and using the native DOM methods when available, and document.query is significantly worse in almost all scenarios.
...
Our current document.query can be optimized about 2x by caching the RegExps being used, but this is still not enough to get close to what they should be.
We special-cased a couple of queries to optimize those, but it appears that the browsers are optimizing those now as well and our optimizations are getting in the way, overall.
From my tests so far, this CL brings a speed improvement to document.query for all scenarios except for the name test:
document.queryAll('[name="test"]') which takes a fairly significant performance hit (runs close to 1/2 speed with this CL). This is mitigated by exposing getElementsByName which if used brings a 2x performance gain over queryAll.
BUG=
Review URL: https://codereview.chromium.org//12715003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19831 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:39:38 +00:00
efortuna@google.com
51701cecb6
Futureify requestFileSystem in WorkerContext.
...
BUG=
Review URL: https://codereview.chromium.org//12566025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19829 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 23:24:24 +00:00
amouravski@google.com
e3192492c9
Fix dart-editor build breaks.
...
Review URL: https://codereview.chromium.org//12667015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19823 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 21:46:13 +00:00
tball@google.com
b2849d2591
Fixed command-line debugger to use new IO API.
...
Review URL: https://codereview.chromium.org//12518014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19822 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 21:32:52 +00:00
blois@google.com
118fa93da7
BUG=
...
Review URL: https://codereview.chromium.org//12596004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19804 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 16:40:01 +00:00
antonm@google.com
2cbf579f6d
Mark ArrayBuffer and ArrayBufferView converters as custom.
...
R=ager@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12518008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19799 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 15:45:51 +00:00
antonm@google.com
e67788f35f
Temporary map ArrayBuffer/ArrayBufferView to dynamic.
...
For some amount of time we're going to allow both
DOM's and dart:typeddata implementations.
R=ager@google.com ,blois@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12440016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19797 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 15:19:57 +00:00
antonm@google.com
598ddebb91
Allow more objects to be treated as ArrayBuffer and ArrayBufferView.
...
Temporary ugly hack. Eventually we'll just remap ArrayBuffer and
ArrayBufferView to the proper dart:typeddata types.
R=ager@google.com ,blois@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12543021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19794 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 14:36:00 +00:00
lrn@google.com
53f877edb7
Rename String.concat to operator+.
...
Review URL: https://codereview.chromium.org//12441003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19788 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:59:17 +00:00
antonm@google.com
f5b87ec057
Attempt to add missing delcs.
...
TBR=ager@google.com ,blois@google.com
Review URL: https://codereview.chromium.org//12667003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19784 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:46:45 +00:00
antonm@google.com
255995eee2
Map typed arrays to lists for now.
...
This is temporary while proper bindings to
typed data are in works.
R=ager@google.com ,blois@google.com
Review URL: https://codereview.chromium.org//12646004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19783 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:36:31 +00:00
floitsch@google.com
5dc8107c53
Revert "Remove Expect from core library."
...
This reverts commit 19755.
Review URL: https://codereview.chromium.org//12743005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19756 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 03:19:07 +00:00
floitsch@google.com
12dbd2fd70
Remove Expect from core library.
...
Review URL: https://codereview.chromium.org//12212016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19755 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:40:37 +00:00
amouravski@google.com
3f83719bdc
Fix build break.
...
Review URL: https://codereview.chromium.org//12733002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19750 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:51:29 +00:00
amouravski@google.com
792ca95fa5
Revert "Revert "Update context2d.arc to take optional anticlockwise parameter""
...
Fixed checked mode test failures.
Review URL: https://codereview.chromium.org//12719002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19747 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:33:37 +00:00
amouravski@google.com
63b99531f5
Revert "Update context2d.arc to take optional anticlockwise parameter"
...
Review URL: https://codereview.chromium.org//12597003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19718 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 19:50:40 +00:00
asiva@google.com
ec72cee8d7
Fix dartc build breakage.
...
Review URL: https://codereview.chromium.org//12714002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19713 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 19:15:16 +00:00