RESOLVED FIXED 75557
[chromium] Create unit tests for CCTiledLayerImpl
https://bugs.webkit.org/show_bug.cgi?id=75557
Summary [chromium] Create unit tests for CCTiledLayerImpl
Adrienne Walker
Reported 2012-01-04 09:53:31 PST
[chromium] Create unit tests for CCTiledLayerImpl
Attachments
Patch (11.80 KB, patch)
2012-01-04 09:55 PST, Adrienne Walker
no flags
Fix win build errors (11.89 KB, patch)
2012-01-05 10:25 PST, Adrienne Walker
no flags
Adrienne Walker
Comment 1 2012-01-04 09:55:26 PST
James Robinson
Comment 2 2012-01-04 11:03:44 PST
Comment on attachment 121120 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121120&action=review Awesome! R=me > Source/WebKit/chromium/tests/CCTiledLayerImplTest.cpp:38 > +#define QUAD(i) " Quad: " << i can you move this down closer to the first use? do we really really need this? we have a lot of quad-named things going on. what about a string constant that's <<'d in like normal? > Source/WebKit/chromium/tests/CCTiledLayerImplTest.cpp:246 > + EXPECT_EQ(quads[i]->material(), CCDrawQuad::TiledContent) << QUAD(i); think this should be ASSERT_EQ() or the next few lines will do really crazy and potentially hard-to-diagnose things
Adrienne Walker
Comment 3 2012-01-04 11:07:50 PST
Comment on attachment 121120 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121120&action=review >> Source/WebKit/chromium/tests/CCTiledLayerImplTest.cpp:38 >> +#define QUAD(i) " Quad: " << i > > can you move this down closer to the first use? > > do we really really need this? we have a lot of quad-named things going on. what about a string constant that's <<'d in like normal? Sure. I'll make it a string constant. >> Source/WebKit/chromium/tests/CCTiledLayerImplTest.cpp:246 >> + EXPECT_EQ(quads[i]->material(), CCDrawQuad::TiledContent) << QUAD(i); > > think this should be ASSERT_EQ() or the next few lines will do really crazy and potentially hard-to-diagnose things Good point. Will change to an assert.
Adrienne Walker
Comment 4 2012-01-04 11:36:26 PST
Adrienne Walker
Comment 5 2012-01-04 14:25:55 PST
Adrienne Walker
Comment 6 2012-01-05 10:25:21 PST
Created attachment 121295 [details] Fix win build errors
Adrienne Walker
Comment 7 2012-01-05 10:25:51 PST
(In reply to comment #6) > Created an attachment (id=121295) [details] > Fix win build errors ^ Just uploading this for posterity. No review needed.
Adrienne Walker
Comment 8 2012-01-05 10:27:03 PST
Note You need to log in before you can comment on or make changes to this bug.