Commit Graph

39 Commits

Author SHA1 Message Date
nweiz@google.com d860ee4794 Switch various transformers and libraries they use over to source_span.
This would release html5lib 0.12.0 and code_transformers 0.2.0.

BUG=19930
R=blois@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38754 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 21:36:43 +00:00
nweiz@google.com 466faa581f Use source_span rather than source_maps in csslib.
This will release csslib 0.11.0 and html5lib 0.11.0+2.

BUG=19930
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38716 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 00:13:19 +00:00
lrn@google.com 1ec6c5c1db Revert "Add "last" setter to List."
After discussion, we decided not to change the List interface for something that is just a convenience.

Also revert "Mark pkgbuild/pkg/collection as failing when using repository packages"

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37307 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-13 09:40:22 +00:00
lrn@google.com f528beb9f2 Add "last" setter to List.
This allows assigning directly as `list.last = value` instead of
having to use the longer `list[list.length - 1] = value`.
It's just an abbreviation, like `list.last` is for reading.

If you use a List as a stack (which is a perfectly good use of it),
modifying the last element like this is a natural operation.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37255 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-12 08:11:22 +00:00
nweiz@google.com 8604c2ffca Fix a couple more tests that were relying on sourcemap message format.
Review URL: https://codereview.chromium.org//297203009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36722 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 00:32:00 +00:00
sigmund@google.com e6de3def62 Update versions before releasing.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36590 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 22:01:17 +00:00
lrn@google.com 61fb66c9e4 The toSet operation returns a new Set with the same equality and iteration behavior, and with the same elements.
R=floitsch@google.com, jmesserly@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36473 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-22 08:29:59 +00:00
sigmund@google.com 2507e2283a Fix status in bots.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36083 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 22:38:19 +00:00
jmesserly@google.com 6a09585caa [html5lib] fix another type annotation
Review URL: https://codereview.chromium.org//278693002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35948 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 22:34:48 +00:00
jmesserly@google.com edeef1c4c3 [html5lib] fix type annotation and pkg.status for angular_tests
angular_tests issue is http://dartbug.com/18733

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35945 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 22:06:44 +00:00
jmesserly@google.com 06f8f2d16b [html5lib] implement querySelector/querySelectorAll
BUG= https://code.google.com/p/dart/issues/detail?id=18508

* tests from https://github.com/w3c/web-platform-tests/tree/master/selectors-api, kept as close to original as I could.

* src/query_selector.dart is most interesting file. It implements enough of selectors to pass the basic web platform tests. Ironically, it was the easiest part of this CL...

* many fixes to csslib. Almost all of the selector tests were skipped (https://github.com/dart-lang/csslib-test-suite/blob/master/suite/selectors3/selectors3_test.dart) and there was a lot of things broken: unicode, escaping, incorrectly treating ident-tokens as units, probably more that I am forgetting :). Fixed as much as I could without doing major surgery.

* a bunch of fixes to the htm5lib DOM to bring it closer in alignment with dom.spec.whatwg.org and dart:html. The driving force was to minimize the changes needed on the W3C tests.

Note: haven't updated things that depend on html5lib like Polymer yet.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35941 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 21:41:05 +00:00
sigmund@google.com 19adebaff7 add CHANGELOG entry in html5lib before releasing.
Review URL: https://codereview.chromium.org//226643002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34744 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-04 20:47:03 +00:00
sigmund@google.com dfef6d6726 Fix how document fragments are added on NodeList operations. The DocumentFragment node should be gone, and its children should be added in place.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34742 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-04 20:19:00 +00:00
jmesserly@google.com fdc39a2711 [polymer] update pubspecs to prepare for -pre.0 release
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33178 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 22:59:23 +00:00
jmesserly@google.com b9fbc30785 [html5lib] api updates: localName
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33004 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-25 04:07:47 +00:00
jmesserly@google.com d48a43957f [html5lib] triple slash comment style
Also improves ./tools/line_doc_comments.dart to warn about lines >= 80 chars, to make it easier to catch these.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32997 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-25 00:36:13 +00:00
sigmund@google.com 4bad819321 small fix in html5lib warning message
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32945 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 23:36:57 +00:00
jmesserly@google.com d10d506d6f fix accidental breaking changes in html5lib, deprecate instead
R=kevmoo@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32680 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-13 23:50:46 +00:00
jmesserly@google.com 1a4a399ea5 fix imports link rel=stylesheet
fixes https://code.google.com/p/dart/issues/detail?id=16648

also:
* adds a few DOM APIs to html5lib that it was missing
* removes a broken test from html5lib
* fixes polymer's dependency on analyzer

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32679 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-13 23:22:48 +00:00
jmesserly@google.com 7d71bc988d introduce web_components pkg to replace shadow_dom, html_import, custom_element. This new package is 100% compatible with the polyfills used by http://www.polymer-project.org/
Deletes:
  pkg/shadow_dom
  pkg/custom_element (except web_ui stuff)
  pkg/html_import

Adds:
  pkg/web_components, with README.md and build instructions

Changes:
  pkg/html5lib -- deprecate queryAll/query in favor of *Selector
  pkg/polymer -- test fixes & a few small changes to work with new polyfills, mostly in build
  tests/html/custom -- can't load the CE polyfill at runtime, must now be injected statically via an HTML page, similar to the style @blois used for some custom element tests.

R=blois@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32533 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-11 01:15:05 +00:00
kevmoo@google.com 030a0ac329 pkg/third_party/html5lib: lots of cleanup
make a lot of things constants
updated pub dependencies
unused imports

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32528 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 23:52:45 +00:00
jmesserly@google.com 8c178dc26d bump pubspecs for package release
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30597 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 23:25:39 +00:00
jmesserly@google.com 873ea4fb9d fix script tags -- remove special case handling for polymer-element
also enforce one-dart-script-per-document rule
also fixes bug about inlining all content, not just polymer-element

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30486 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 22:13:52 +00:00
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
sgjesse@google.com c38de04d0c Change dart:io Platform.script to return a Uri.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29651 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 07:29:01 +00:00
whesse@google.com 4f08151090 Revert "Change dart:io Platform.script to return a Uri."
This reverts r29619 and r29624.  The changes look fine on the buildbot,
but need review before adding to the repository.

BUG=

TBR=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29627 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:17:37 +00:00
whesse@google.com cb0110350a Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with the new value.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29619 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 01:08:11 +00:00
sethladd@google.com 655c867e89 change homepage for html5lib
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29602 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 22:36:58 +00:00
whesse@google.com 69205c207c Remove uses of Options from pkg, samples, tests, and third_party directories.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29552 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 15:17:01 +00:00
lrn@google.com e3713a08d4 Make List.shuffle take an optional Random object to use.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28305 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 12:07:30 +00:00
lrn@google.com 55a8a72ca6 Add List.shuffle().
Will add tests too.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28206 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 11:09:01 +00:00
floitsch@google.com 0fa2f91c3c remove use of deprecatedFutureValue from html5lib
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27122 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 13:15:59 +00:00
floitsch@google.com 426e2b0ced Fix missing quote.
Review URL: https://codereview.chromium.org//23532008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26797 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 15:57:30 +00:00
floitsch@google.com e95105d602 Remove dart:utf in third_party.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26796 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 15:40:46 +00:00
floitsch@google.com d213b9d1f4 Remove use of dart:json from third_party.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26795 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 15:39:35 +00:00
jmesserly@google.com 29397a566d html5lib -- workaround dart2js checked issues
Review URL: https://codereview.chromium.org//23221002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26161 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 22:09:44 +00:00
jmesserly@google.com d1f780df0b move html5lib code into dart svn repo
also gets the tests running

Changes to scripts:
* pkg/pkg.gyp: add 'third_party' to list of folders to search
* tools/publish_pkg.py: update copyright year
* tools/publish_all_pkgs.py: also include pkg/third_party

Changes to html5lib:
* pubspec.yaml -- removed versions
* README.md -- removed some historical notes
* added html5lib.status
* test/browser -- rename browser_tests to browser_test so test framework finds it
* test/parser_test.dart, test/parser_feature_test.dart -- moved dart:io test into parser_test so parser_feature_test can work in browser
* test/support.dart -- now finds the data folder relative to entry point script
* test/support.dart -- rename "pathos" import to "path"

Not changed:
* ./test/run.sh still works for testing, in addition to ./tools/test.dart

R=dgrove@google.com, ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26152 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 20:59:46 +00:00