Commit Graph

6631 Commits

Author SHA1 Message Date
blois@google.com d72387b95a Updating metadata after Chrome rolls.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23888 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 23:47:09 +00:00
blois@google.com 09dab7ecf3 Fixing up element_types_test to work properly in checked mode, adding a few more element constructors.
Basically the constructors were failing in checked mode when they returned UnknownElement rather than the expected type. I adjusted the tests to account for this.

BUG=10796
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23885 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 22:42:12 +00:00
blois@google.com ab50cfcc68 Adding annotations for native types of type Object or dynamic.
Also added generation warnings to try to detect these.

BUG=10946
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23875 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 19:46:57 +00:00
blois@google.com 648084af6f Bringing dart:html's spawnDomFunction into sync between dart2js and dartium.
BUG=10221

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23857 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:40:30 +00:00
vsm@google.com 609c1239d5 Move interop js code out of dart.js
BUG=7973

Note: this is a breaking change and would be advertised as such.
Anyone using js-interop would need to explicitly include:

<script type="text/javascript" "pkg/browser/lib/interop.js"></script>

along with dart.js in their HTML.  Those who don't need js-interop can
save on this code.

Alexandre: I'm imagining interop.js would be the landing spot for
dart:js bootstrap code as well.

R=alexandre.ardhuin@gmail.com, dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23855 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:33:18 +00:00
kustermann@google.com f73188d127 Use gnueabihf for ARM + enabled corelib/isolate/lib/standalone tests on ARM again
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23854 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 14:21:28 +00:00
blois@google.com 3e98d393de Updating docs for appendText and insertAdjacentText to reflect implementation.
Basically insertAdjacentText is not standardized but is natively supported on IE, Chrome and Opera. Chrome inserts only a text node, but IE will create <br/> elements for line breaks (acts more like innerText, which we suppress).

Alternatively, we skip the native implementation and always polyfill the API, though I'd be more inclined to omit it entirely.

BUG=11180
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23827 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 19:39:23 +00:00
antonm@google.com 5a334f3da2 Remove renames for gone interfaces.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23818 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 16:25:37 +00:00
ricow@google.com 93e817b16c Add packages as a dependency for dart2js target
Since dartdoc depeneds on packages and we include it in the snapshot we need packages as a depenedency.

Currently tools/build.py -mrelease dart2js is broken if you do a clean build.

R=ahe@google.com, kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23804 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 11:57:06 +00:00
amouravski@google.com 6632a3d8ed Fixed an incorrect doc reference.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23767 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 19:51:53 +00:00
blois@google.com f7e2d341dd Fixing codegen issues from Blink roll.
Appears that Blink is in the process of renaming WebKit IDL types, but right now they have duplicated types.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23757 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 18:26:03 +00:00
antonm@google.com 9a71e85188 Remove now unused enables.
TBR=blois@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23754 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 16:40:32 +00:00
antonm@google.com f1677b76c9 Blink IDL roll.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23752 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 16:34:31 +00:00
antonm@google.com a352956d29 Chrome roll 202464->204370.
TBR=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23743 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 14:56:12 +00:00
antonm@google.com 7629d7f4d4 Partial support for new getters/setters declaration.
TBR=blois@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23742 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 12:07:54 +00:00
kustermann@google.com ea9c3c802d Fixed small issue with record&replay testing for arm
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23729 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 07:52:56 +00:00
scheglov@google.com 80fea8fd8e More fixes for java2dart and status files.
Now DDA passes/fails the same tests as Java version.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23705 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 18:13:44 +00:00
ricow@google.com d3b8403e8f Remove old cleanup code in pkg make links functionality
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23685 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 14:02:17 +00:00
kustermann@google.com 096eb7ada9 Simplified the killing mechanism in browser_controller.dart
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23674 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 11:12:59 +00:00
dgrove@google.com 5ff2d92f61 No longer publish packages in the SDK. All of the tools in dart-sdk/bin
run from snapshots, and no longer need access to the package source.

We'll continue to publish packages to pub.dartlang.org .

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23664 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 23:59:39 +00:00
blois@google.com 208f29e24b Fixing dart2js KeyEvent issue.
The incorrect type for the JS call was causing the compiler to generate incorrect code.

BUG=11088
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23659 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 21:11:04 +00:00
blois@google.com 0956f1c314 Fixing HttpRequest.upload.onProgress.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23658 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 21:09:59 +00:00
blois@google.com 797769e39f Fixing SelectElement.options, adding support for optgroup.
BUG=8115
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23652 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 19:45:36 +00:00
blois@google.com 320b629f3f Hiding dart:html's Entity
Causing some conflicts with other packages, need to decide what we want to do with it.

BUG=
R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23646 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 17:49:16 +00:00
scheglov@google.com b06ba1b3e6 Run 'analyzer' tests with '--show-package-warnings' flag.
This does not make any new tests to pass or fail though.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23633 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 15:26:56 +00:00
scheglov@google.com 0d3e47da2c Basic dart^2 analyzer tests running.
Status file only for co19 now, more status files in next CL.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23602 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 16:09:13 +00:00
lrn@google.com 662c2a8262 Rename RuntimeError to CyclicIntializationError, as per spec.
The RuntimeError has been used to report cyclic initialization errors in
dart2js.
It has also been used for other, unrelated, uses, where it makes
little to no sense.

The RuntimeError type has been removed, but added in js_helper.dart,
where dart2js uses it.

Uses of new RuntimeError("some message") have been converted to
other errors (Argument/State/Unsupported). In some cases, just
throwing a String might have been just as good.

BUG=http://dartbug.com/11040
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23584 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 10:33:11 +00:00
ricow@google.com e4a9a2eab4 Give developers a correct command line to reproduce test failures without the use of selenium.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23576 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 06:13:01 +00:00
ricow@google.com becacf241f Remove old analyzer from the sdk.
R=danrubel@google.com, kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23574 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 05:59:10 +00:00
blois@google.com 58a92ac603 Fixing a number of Dart2JS compiler warnings.
BUG=11039
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23569 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 21:11:14 +00:00
blois@google.com 0f9bcbe05e Updating Clipboard.setDragImage to accept elements.
This changes the IDL to expose it, but the method is custom in V8 and needs to be custom in Dart.

Basically the spec has changed that setDragImage should accept elements rather than just images:
http://www.w3.org/html/wg/drafts/html/master/editing.html#dom-datatransfer-setdragimage

And V8 (and Firefox) already support this:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/bindings/v8/custom/V8ClipboardCustom.cpp&sq=package:chromium&type=cs&l=80&rcl=1369903032

Also, this appears to already have the Dartium code for it-
http://src.chromium.org/multivm/trunk/webkit/Source/bindings/dart/custom/DartClipboardCustom.cpp

Not sure if there are additional changes, but this appears to work for me (requires manual testing).

BUG=10819
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23568 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 21:09:44 +00:00
blois@google.com 5bbd582932 Fixing some of the tests disabled from the chrome IDL roll.
Basically some native constructors were added which are not yet cross-platform, so skipping them for now.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23564 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 20:10:48 +00:00
amouravski@google.com 768d611f4e Remove more question marks.
R=antonm@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23563 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 19:56:58 +00:00
blois@google.com bda041d474 Updating DOM metadata triage list for recent Blink changes.
BUG=
R=efortuna@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23554 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 17:45:06 +00:00
vsm@google.com 03de0e182f Remove error throw on bad DEFINES
We need to be forgiving here for Android builds.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23547 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:44:20 +00:00
antonm@google.com 2ebfa26751 Remove now absent interfaces/methods.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23544 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:07:57 +00:00
antonm@google.com 081a2be830 Allow null strings in setters.
V8 generator always allows nulls for Reflect attributes of type
DOMString.  That looks somewhat hairy, but let's just follow the logic
for Dart as well.

R=podivilov@chromium.org
BUG=8189

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23541 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 13:26:11 +00:00
antonm@google.com 442b84095e Always return true for ShadowRoot.supported.
R=blois@google.com
BUG=10960

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23525 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 08:21:37 +00:00
vsm@google.com ead4d0e00a Removed Console.profiles
This is now gone in Blink.

TBR=blois

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23519 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 23:02:13 +00:00
vsm@google.com 1735f7a080 IDL roll and expectations fix
To the latest Blink.

TBR=blois

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23516 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 22:46:00 +00:00
vsm@google.com b85b97cbe6 Fixes for Blink roll to r151189
TBR=antonm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23511 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 18:34:36 +00:00
hausner@google.com c5ca64453e Fix coverage tool on Windows
Covert file paths to native format.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23508 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-01 00:07:07 +00:00
hausner@google.com 219c85a148 Add coverage tool to standalone tests
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23494 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 21:53:38 +00:00
zra@google.com e6cf04a8bb Changes to run "Hello, world!" on MIPS hardware.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23484 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 18:41:41 +00:00
kustermann@google.com 077b9e2d29 Bugfix in test_runner.dart
On MacOS the content shell executable name included "-characters. Since we're not running the command in a shell, these characters are part of the filename and the exec syscall will fail.

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23463 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 12:19:31 +00:00
lrn@google.com faa7227cec Make new StreamController be async by default.
Change all instances, except some tests, to be sync still.
Rename Multiplex to Broadcast everywhere.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23453 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 06:07:39 +00:00
blois@google.com 9a9db6b3eb Fixing broken tests because of mismatch of suppressed warnings.
Removing additional warnings and fixing the core issues.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23433 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 18:26:32 +00:00
blois@google.com ca01606620 Fixing dart2js compilation warning.
Was seeing the warnings:
build/ReleaseIA32/dart-sdk/lib/html/dart2js/html_dart2js.dart:15831:21: Warning: no property named _this in class Iterable
      if (identical(newNodes._this, this)) {
                    ^^^^^^^^^^^^^^
build/ReleaseIA32/dart-sdk/lib/html/dart2js/html_dart2js.dart:15838:27: Warning: no operator [] in class Iterable
        this.insertBefore(newNodes[0], refChild);

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23428 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 17:47:07 +00:00
blois@google.com 8d750efbfe Suppressing CustomElementConstructor.
Not hiding it yet, but marking it in the metadata as going away.

BUG=9902
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23424 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 16:34:01 +00:00
blois@google.com 881e456c21 Cleaning up some DOM APIs which were marked as deprecated because they were moved or renamed.
There were basically two issues:
- localName and namespaceUri moved from Node down to Element.
- The transitionEnd event was polyfilled based on the deprecated webkitTransitionEnd event, so it was switched to the standard transtionEnd.

The Attr change was needed because the node map was using localName on Attr (inherited from Node), when it should have been using name. Attr is not actually exposed anywhere, so made it private.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23423 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 16:31:09 +00:00