Commit graph

41 commits

Author SHA1 Message Date
Alan Knight c2116ef71e Experiment with canvasrenderingcontext2d test failure
BUG=

Review URL: https://codereview.chromium.org/1802343003 .
2016-03-15 12:54:17 -07:00
vsm@google.com 509cf9f72d Fix canvas test for Chrome 37
TBR=terry@google.com,blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38723 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 07:35:19 +00:00
kevmoo@google.com 4283c3e41e using unittest via package import
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34890 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-09 19:42:11 +00:00
kevmoo@google.com b16286c0e1 tests/html: removed usage of deprecated unittest features
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34755 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-05 01:01:48 +00:00
kevmoo@google.com 5952d7a067 Upgrading tests with unittest deprecations
R=ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34569 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-31 18:33:18 +00:00
efortuna@google.com 8b4e5e92ba "Reverting 29013"
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29017 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:25:40 +00:00
efortuna@google.com f4e40d6d9a Make getLineDash return [] instead of null if it has not yet been set.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29013 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 17:40:58 +00:00
amouravski@google.com 623f40c33a Fixed type error.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28974 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 00:29:39 +00:00
amouravski@google.com 6452efa6f5 Updated tests for fillText to better account for off-by-one errors.
Review URL: https://codereview.chromium.org//33833003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28969 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 23:18:14 +00:00
amouravski@google.com 0177ed7ae4 CanvasRenderingContext2D.fillText now works correctly with null maxWidth.
BUG=13369
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28963 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 22:09:07 +00:00
efortuna@google.com eaa854b258 Move Rectangle and Point into dart:math.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28272 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 17:47:39 +00:00
efortuna@google.com 0b53b15b7d "Reverting 28184"
TBR=blois

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28186 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 22:13:16 +00:00
efortuna@google.com 837c6b6ee3 Move Point and Rect over to dart:math, to be re-exported by dart:html.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28184 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 21:54:02 +00:00
efortuna@google.com 1b0d2fbd4e createPatternFromImage doesn't work on Firefox. Removing until we have a
pollyfill.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24710 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 23:42:30 +00:00
efortuna@google.com f81052f2c8 Reapply expanding overloaded functions into separate functions.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24709 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 22:32:44 +00:00
efortuna@google.com 3629744086 "Reverting 24655"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24656 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 21:09:19 +00:00
efortuna@google.com fc0df10d8b Expand overloaded methods and optional parameters in the html library.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24655 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 20:49:07 +00:00
antonm@google.com 9ef479fbe4 Lax restrictions on exact exeption type for now.
TBR=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23126 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 08:41:55 +00:00
amouravski@google.com f968d3465c Added tests to previously broken functionality and added null checks.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23123 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 08:23:24 +00:00
efortuna@google.com ae82b45193 Rename context2d to context2D.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21006 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:16:48 +00:00
blois@google.com 414c688b45 Fixing typo in canvas test.
This was from the image data rename.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20358 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 22:06:11 +00:00
blois@google.com 639cab021b Changing the IDL DartName= annotation to only operate on a per-member basis, allowing overloaded methods to be renamed independently.
This also includes a change to rename one overload of CanvasRenderingContext2D.createImageData as a test case.

The remaining changes are to address differences between old semantics of DartName and new semantics, as well as some ordering differences of generated code.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20355 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 21:50:15 +00:00
amouravski@google.com 46a4ecdae1 Unrevert https://codereview.chromium.org/12722009/
Review URL: https://codereview.chromium.org//12941008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20354 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 21:22:49 +00:00
blois@google.com 8652d54682 Reverting "Fix drawImage on Firefox and update html.status."
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20340 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 18:49:30 +00:00
amouravski@google.com 4eeb17ebe9 Fix drawImage on Firefox and update html.status.
Added some sample videos, as well as spruced up test suite.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20334 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 17:45:41 +00:00
amouravski@google.com 85c959e6c3 Update drawImage to create more fast paths.
Review URL: https://codereview.chromium.org//12774014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20256 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 22:53:19 +00:00
amouravski@google.com bbdbb60c70 Comment out video tests until I can get them to work reliably.
Review URL: https://codereview.chromium.org//12713006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20113 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 21:37:15 +00:00
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
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
amouravski@google.com 566977fc1d Update context2d.arc to take optional anticlockwise parameter
Review URL: https://codereview.chromium.org//12548010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19707 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 18:39:19 +00:00
blois@google.com df65842f1f Loosening tolerances for canvas test to pass on IE10.
Not sure why, but occasionally IE10 starts rendering canvases with slightly off colors.

BUG=8678

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19352 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-02 02:40:06 +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
blois@google.com 8a60c38f6b Marking canvas test as pass so I can figure out what tolerances need to be adjusted.
This test appears to be failing on IE because of rounding errors, but I cannot repro locally.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16561 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 23:12:40 +00:00
gram@google.com 981c4b11df Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +00:00
blois@google.com 8ad35fa9a6 Refactoring tests to run on Safari.
Basically there was redundancy between canvas_test and canvasrenderingcontext2d test, I removed this redundancy and kept the failing test in canvas_test, which is now essentially empty.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13363 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 17:46:59 +00:00
blois@google.com 845c13e426 Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants.
This is the same as the earlier CL for this, which failed because of dartium build issues which have since been fixed by Anton.

BUG=4592

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13361 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 16:15:23 +00:00
blois@google.com 9cfdc2dddc Revert "Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants."
This reverts commit 12972 because it was failing in dartium.

TBR=vsm
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12973 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 17:13:35 +00:00
blois@google.com ab684728a8 Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants.
Original CL failed because:
Additional tests were marked as fail because they used the broken behavior. I've fixed these tests and removed their exclusions.

Argument types were mismatched, causing Dartium to fail.

BUG=4592

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12972 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 16:39:36 +00:00
blois@google.com adcd66064b Revert "Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants."
This reverts commit 10979029.

This broke dartium (not sure why) and canvas_test, which actually relied on the broken behavior.

TBR=vsm
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12936 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 22:59:49 +00:00
blois@google.com 539fb987b1 Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants.
BUG=4594

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12935 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 22:37:35 +00:00