Commit Graph

6631 Commits

Author SHA1 Message Date
blois@google.com f46672cb73 Converting tests over to using event streams.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17735 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-28 23:31:15 +00:00
blois@google.com ffc85c7428 Fixing type check error using Stream.take in dart2js checked mode.
Encountered this issue converting dart:html tests over to streams.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17719 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-28 16:58:31 +00:00
lrn@google.com eb272bd53c Fix bug in html element remove.
BUG=http://dartbug.com/8142

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17715 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-28 15:29:20 +00:00
kustermann@google.com 740b947e24 Small bugfix in test_suite.dart
Review URL: https://codereview.chromium.org//11929022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17702 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-28 11:29:41 +00:00
asiva@google.com d313a1243f 1. Change option --use_script_snapshot to --use-script-snapshot (easier to type).
2. Use dart binary with the --generate-script-snapshot option to generate dart2js snapshot
Review URL: https://codereview.chromium.org//12084010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17686 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 05:47:56 +00:00
jmesserly@google.com 61c97e7325 Restructure YAML package suitable for pub lish
After this I can use tools/publish_pkg.py upload script to fix dartbug.com/4126

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17685 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 02:25:43 +00:00
blois@google.com 165c6ec133 A couple of changes to change Window.requestLayoutFrame into a microtask API.
- Renamed window.requestLayoutFrame to window.setImmediate.
- Added support for IE's window.setImmediate
- Converted Element.getComputedStyle to be synchronous
- Removed Element.computedStyle, should use Element.getComputedStyle.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17681 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 01:02:48 +00:00
blois@google.com ef8128536a Revert "Adding supported checks for Element.matches."
This reverts commit 17670 which is causing problems for IE9.

For some reason IE9 is failing the matches test but passing the supported check. But I cannot repro on my machine.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17678 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 00:34:25 +00:00
blois@google.com e731f909bd Making Element.matches correctly fail on IE9.
The API is unsupported (and the supported check returns false), but it was just falling through when it should have thrown.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17675 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 00:08:21 +00:00
blois@google.com 5e5505edf3 Adding supported checks for XsltProcessor.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17671 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:34:11 +00:00
blois@google.com 7936da179e Adding supported checks for Element.matches.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17670 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:29:05 +00:00
blois@google.com 01ede06509 Adding supported checks to websql.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17668 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:18:04 +00:00
blois@google.com 51dce2b072 Adding supported checks for CssMatrix and Point.
Also renaming Point to DomPoint to avoid any potential clashes with a future Point class.

I'm also trying to get a Point class in dart's SDK, once this is added then DomPoint should be removed.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17667 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:13:08 +00:00
amouravski@google.com 7d244f8eba Fixed some bugs in dom docs and recovered documentation of Canvas stuff.
Review URL: https://codereview.chromium.org//12087003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17665 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 22:59:26 +00:00
amouravski@google.com 87e86c1f8d Second half of HTML json docs. This reads the json file and inserts the docs.
The format should match what was hand-written, but the order of annotations may
have changed. This does not effect anything, but it's worth noting.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17649 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 19:24:25 +00:00
ahe@google.com 2f974584dc Add dart2js option to select library categories.
By default, the compiler will only accept the Client category, meaning that it will be an error to import dart:io.

During testing on d8, the compiler will support all library categories to continue supporting so called "mock compilation".

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17637 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 12:08:26 +00:00
johnniwinther@google.com f02c12f3c3 Private libraries used.
Review URL: https://codereview.chromium.org//11973006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17634 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 09:05:22 +00:00
scheglov@google.com d9605fe9ef Issue 8051. Make extended exit codes optional.
http://code.google.com/p/dart/issues/detail?id=8051

Unfortunately testing framework expects exactly 0 and 1.
So, I've made 0/1/2 exit codes optional.

Phil, FYI

R=devoncarew@google.com,pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17629 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 04:11:12 +00:00
scheglov@google.com be31b47690 Issue 8051. dart_analyzer return codes on errors
http://code.google.com/p/dart/issues/detail?id=8051

R=devoncarew@google.com,whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17622 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 00:47:48 +00:00
amouravski@google.com 33e91c55be Changed how Experimental annotation works. No longer is a constructor.
Review URL: https://codereview.chromium.org//12041090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17619 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 23:50:59 +00:00
blois@google.com 732d362a32 Adding supported checks for HttpRequestProgressEvent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17612 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 23:03:14 +00:00
amouravski@google.com d2a79c9bdd First half of the new HTML json docs.
This half produces the JSON file by going through each of the HTML libraries
and pulling out the @DomName annotations as keys for the map.
This means that even though member names may change, the map still works.

Currently creates a blank json file because I have not hooked up the other half
that puts the docs into the libraries to begin with.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17610 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 22:53:00 +00:00
blois@google.com 457e364487 Removing many Element APIs from DocumentFragment
Many Element APIs made no sense on DocumentFragment since it no longer derives from Element (as of M2).

BUG=7858

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17609 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 22:50:03 +00:00
blois@google.com d2aa044d2b Deprecating old DOM event APIs.
This also exposes EventTarget.dispatchEvent. We had discussed naming this as 'dispatch', but it seems a bit safer to use 'dispatchEvent' to avoid potential name conflicts.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17595 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 19:42:02 +00:00
blois@google.com 6ade3fc5c9 Adding test & annotations for popstatevent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17589 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 18:59:08 +00:00
blois@google.com 0b765012a4 Updating KeyboardEvent constructor to use named parameters.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17585 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 18:07:59 +00:00
blois@google.com 4047adfea6 Fixing bunch of analyzer issues in DOM libs.
Basic changes:
- missing references to collections-dev,
- missing implementation of abstract methods
- Couple of incorrect generic arguments (which cause ugly dart2js warnings for users)
- Removed more references to Collections

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17582 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 17:11:24 +00:00
floitsch@google.com ac3ad4cc81 Don't change Date to DateTime in JavaScript code.
Review URL: https://codereview.chromium.org//12033078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17580 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 16:43:43 +00:00
antonm@google.com d3596d3377 Simplify hack to suppress overloaded constructors.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17555 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:58:38 +00:00
floitsch@google.com fb7b9e3c5c Rename Date to DateTime.
BUG=http://dartbug.com/1424

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
lrn@google.com 09051ebf15 Fix bugs in GrowableList.remove*.
Add generic removeMatchingList functionality in IterableMixinWorkaround.

BUG=http://dartbug.com/8018, http://dartbug.com/8075

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17534 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 10:34:45 +00:00
antonm@google.com f68706e4c4 Initial work on ImageData.data.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17526 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 08:25:37 +00:00
antonm@google.com abb2499b5a Some more refactorings of overload dispatcher generation.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17522 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 07:51:18 +00:00
blois@google.com 51ed22e712 Adding supported flag to HashChangeEvent.
Also had to change the event type of the hashChange event as it is supported everywhere, but the type may or may not be a HashChangeEvent.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17507 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 22:22:28 +00:00
iposva@google.com 44bc457424 - Fix simarm/simmips builds on Mac.
Review URL: https://codereview.chromium.org//12033063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17505 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 22:17:26 +00:00
blois@google.com edf1d5149f - Changing event constructors to use named parameters.
- Making more parameters optional.
- Converting remaining init*Event calls to constructors.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17488 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 19:43:21 +00:00
kustermann@google.com 6ca4e48671 Added a comment to clarify the interpretation of exit codes on windows
Review URL: https://codereview.chromium.org//12035052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17455 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 13:24:03 +00:00
blois@google.com 7834eba896 Removing @DocsEditable from classes we have darttemplates for.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17436 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 00:35:17 +00:00
blois@google.com c63ae60625 Adding supported checks to media events.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17431 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 22:50:18 +00:00
blois@google.com 299ec70b31 Adding supported checks & test for SpeechRecognition APIs.
This is a re-submission of https://codereview.chromium.org/12026032/, the problem was that Dartium does not allow factory constructors with the same name as members.

Had to rename Event.type constructor to Event.eventType.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17430 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 22:42:01 +00:00
blois@google.com b0e5d99712 Reverting 17420 "Speech recognition APIs" which broke dartium.
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17427 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 21:55:12 +00:00
blois@google.com 23b8686f50 Fixing Dartium build issue with speechrecognition API.
Dartium doesn't like params with same name as constructor.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17422 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 21:04:16 +00:00
blois@google.com a492a08eb2 Adding supported checks & test for SpeechRecognition APIs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17420 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 20:41:38 +00:00
antonm@google.com 2e73feb690 Minor unification with dart2js bindings.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17406 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 15:32:17 +00:00
floitsch@google.com 383dce1b4e Remove collection-dev from the html and js-helper library.
Review URL: https://codereview.chromium.org//11859037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17358 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 14:41:30 +00:00
floitsch@google.com 1febeb689a Move some core classes to collection library.
Review URL: https://codereview.chromium.org//11867024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17352 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 13:34:02 +00:00
ricow@google.com 060eb6b633 Add support for having both 10.8 and 10.7 mac bots side by side on the buildbot waterfall
Review URL: https://codereview.chromium.org//12035004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17335 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 09:22:30 +00:00
blois@google.com 759e9b6706 Adding annotations to event streams.
I need to add supported annotations to some events, splitting out this part since it makes the other CL quite unwieldy.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17329 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 23:35:23 +00:00
blois@google.com 049efc4fe8 Fixing cleanup of dart:html annotation generation.
This is an update of https://codereview.chromium.org/11968047/

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17323 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 22:11:21 +00:00
regis@google.com be9555b2e1 Mofify vm code base so that it can be built for --arch=simmips.
Review URL: https://codereview.chromium.org//12018023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17321 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 21:46:58 +00:00