Commit Graph

2050 Commits

Author SHA1 Message Date
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
ricow@google.com af21d74d2d Fix safari browser to use Future.value
Also correct type errors found by the analyzer.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24532 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 17:07:17 +00:00
ricow@google.com 545f6e1341 Update checked in binary to version 0.5.19.0
This is a reland of r24086 with a fix catching errors in the websocket server in tools/testing/dart/http_server.dart.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24520 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 16:10:59 +00:00
ricow@google.com de1180fa94 Change the target that we build on the android bot from samples to runtime
It seems that the sample is broken, do we even support this?

R=efortuna@google.com, vsm@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24507 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 05:59:15 +00:00
jmesserly@google.com 5ec4d52def fix analysis issue caught by dart2js bots
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24501 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 00:06:30 +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
sra@google.com 4d9098cb0e Move some native type dispatch tags from runtime into class definitions.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24488 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:40:02 +00:00
blois@google.com edf30f6b20 Exposing Node.firstChild and Node.lastChild.
These are the most efficient way access children and are very commonly used.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24476 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 16:53:50 +00:00
amouravski@google.com 1a6eb93f25 Added link to HTML5 samples to the top of HTML library.
Bug: https://code.google.com/p/dart/issues/detail?id=9954

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24452 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:29:16 +00:00
amouravski@google.com a3f57b00ab Fixed old docs for WebSocket.
Bug: https://code.google.com/p/dart/issues/detail?id=10507

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24451 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:17:09 +00:00
amouravski@google.com 67ab947580 Added minimal documentation to the KeyboardEvent class.
Bug: https://code.google.com/p/dart/issues/detail?id=11483

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24450 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:15:18 +00:00
amouravski@google.com 304a2c477b Fix typo in documentation of CanvasElement.toDataUrl.
Bug: https://code.google.com/p/dart/issues/detail?id=10994

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24449 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:12:21 +00:00
jmesserly@google.com 7fd6e0a3dc Restore adoptNode and importNode to dart:html
http://dom.spec.whatwg.org/#dom-document-importnode
These seem more relevant in a <template>/ShadowRoot world. In particular I wanted to port an MDV test that uses adoptNode.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24423 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 18:02:26 +00:00
kustermann@google.com 48527d06cd Revert "Do not compile tests for different browsers separately"
We have to use subdirectories instead of special names in the javascript files.

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24408 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 14:37:53 +00:00
kustermann@google.com 3b23ea198f Bugfix: make the new compilation artifact layout also work with dart2dart
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24407 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:59:49 +00:00
kustermann@google.com 30511a9190 Bugfix in test_suite.dart
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24404 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:38:56 +00:00
kustermann@google.com f6e9601c01 Do not compile tests for different browsers separately
Currently we recompile tests with dart2js for all browsers. There is no
need to do these compilations for all browsers, since the output should be
exactly the same.

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24402 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:25:11 +00:00
ricow@google.com ee35be8712 Simplify close functionality in the browser controller.
Add a done future that can be used by users to determine if a browser crashes.

This future is the same we return from the close call.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24395 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 11:35:24 +00:00
blois@google.com e1221d88fc Running go.sh
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24376 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 23:32:58 +00:00
blois@google.com c0f342adcd Fixing up previous CL to fix Dartium issues.
patch from issue 17453003

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24354 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 17:49:25 +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
ngeoffray@google.com 04f294a73d Remove =List in JS, use JSExtendableArray instead.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24319 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 10:09:14 +00:00
ricow@google.com 302fbd5174 Add two additional directories to safari cache clearing.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24317 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 09:47:37 +00:00
blois@google.com 9a55dad88e This is causing a build error on Dartium (conversion from unsigned long to GLenum).
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24298 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 18:18:17 +00:00
blois@google.com 7b4bd8fef5 Fixing an issue where EXTDrawBuffers.drawBuffersEXT was not getting generated.
Core issue is that sequences of typedefs aren't getting resolved properly, so it was treated as an unknown type.

Did a workaround, opened bug 11395 to track the core IDL parser issue.

BUG=11029
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24296 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 17:34:21 +00:00
kustermann@google.com 0d8293ef34 Initial support for mac installers. Currently only on our editor builders on FYI
R=devoncarew@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24271 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 08:37:25 +00:00
blois@google.com 6b44f65407 Revert "Making all DOM types abstract and removing superfluous Dartium constructors."
This reverts commit http://code.google.com/p/dart/source/detail?r=24241.

Compiler error, not sure of best fix.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24245 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 19:37:47 +00:00
blois@google.com c3547d4e9b Making all DOM types abstract and removing superfluous Dartium constructors.
Adding factory constructors to all classes to suppress missing generative constructor warnings.

Adding a throw to Dartium's base DOM class to prevent construction of native objects.

This also includes the changes necessary to make all DOM types abstract, but I'm running into a dart2js issue which is preventing that.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24241 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 17:31:36 +00:00
ricow@google.com 568e86f4a1 Also remove Library/Safari from users home dir if --clear_safari_cache is set
Additionally, actually handle errors on deletion correctly by checking for existense first and actually failing if we fail to delete the directory.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24238 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 16:01:41 +00:00
kustermann@google.com 8984694c97 Print out experimental test.py reproduction command
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24231 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 14:19:11 +00:00
ricow@google.com dcb2d0096a Pass in clear_safari_flag on the bots
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24228 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 14:03:36 +00:00
ricow@google.com ecb4dea649 Add safari cache clearing browser functionality to the safari browser.
Also, add flag to test.dart to enable this feature.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24215 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 10:30:04 +00:00
ricow@google.com 12682d3bc7 Add timing information for the individual steps of a failing test.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24213 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 09:03:23 +00:00
kustermann@google.com e2bae5305b Bugfix for tools/utils.py: Inherit environment to cmd.exe.
On windows we run "svn" in a shell. But the shell cannot find svn.exe if PATH is
not set.

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24212 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 08:22:25 +00:00
jmesserly@google.com 66398e12b5 Move PathObserver to mdv_observe package
(Since it doesn't actually depend on dart:html, didn't seem the right place for it)

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24166 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 02:21:54 +00:00
ricow@google.com 756c5de9aa Remove special casing of number of dart compilation processes on mac.
I want to know if this actually has an effect or not.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24136 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 11:51:37 +00:00
asiva@google.com da491fce35 Fix compilation flag that was inadvertently changed
in https://codereview.chromium.org/16973003/

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24113 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 22:39:14 +00:00
ricow@google.com 4c5b2ac2ab Revert 24086 Update checked in binary to version 0.5.19.0
This is causing crashes in http server.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24096 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 13:22:15 +00:00
ricow@google.com 1523157e2e Fix missing underscore for maxBrowserProcesses
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24095 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 13:04:20 +00:00
ricow@google.com b814373e75 Change number of started browser processes to the max number of browser processes.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24094 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 12:45:12 +00:00
ricow@google.com 8ebb5cd61a Limit number of safari process to 1 (or num processes -3)
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24092 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 12:21:55 +00:00
ricow@google.com 1970fc7afb Update checked in binary to version 0.5.19.0
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24086 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 10:47:02 +00:00
kustermann@google.com 7ac44d347f Reduce the number of browser processes on safari
This is a temporary measure until we figure out what's wrong with the new
browser_controller.

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24082 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 09:40:24 +00:00
ricow@google.com df4bf922fa Make version generation functionallity work on non english locale.
Landing patch supplied by David Gomez - see http://dartbug.com/11119

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24072 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 06:42:29 +00:00
asiva@google.com 51651ee00b Split dart_api.h into multiple parts:
dart_api.h - Has the core API functions
dart_mirrors_api.h - Has API functions to support Mirrors or reflection
dart_native_api.h - Has parts which support the native message handling,
                    profilling and other internal tools

R=sgjesse@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24062 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 23:47:40 +00:00
ricow@google.com 62f8da0bdf More debug info on the browser controller.
Add timing info on actual requests to the http server.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24017 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 06:22:07 +00:00
blois@google.com 28560f4a06 Adding WebGL context events to Canvas.
BUG=9482
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24006 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 20:12:01 +00:00
blois@google.com 25178b1217 Adding Range constructor for document.caretRangeFromPoint.
BUG=9227
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24004 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 18:41:48 +00:00
blois@google.com b206fa4a34 We always had this class in the hierarchy for Dartium but had hidden it for Dart2js, this caused problems because the actual runtime hierarchy was different than the Dart expressed one.
BUG=9907
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23999 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 17:17:54 +00:00
ricow@google.com a3902a74f4 Add debug info for how long it takes to handle the output from the browser.
Review URL: https://codereview.chromium.org//16881006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23998 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 17:15:54 +00:00