diff options
author | fmalita <fmalita@chromium.org> | 2015-06-15 13:15:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-15 13:15:31 -0700 |
commit | 109a23d64ff9cf210e6b0aa8940b4fcea3f05a97 (patch) | |
tree | 3e64cbec385ca708853c135515af6f6247dbdd58 /tests | |
parent | e0ef4a71570f5c7ef60004fc86adad072e1f8719 (diff) |
Remove the SkCanvas comment API
No longer used in Chromium/Blink.
R=reed@google.com,robertphillips@google.com,mtklein@google.com
Review URL: https://codereview.chromium.org/1153593003
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CanvasTest.cpp | 3 | ||||
-rw-r--r-- | tests/RecorderTest.cpp | 19 |
2 files changed, 0 insertions, 22 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 7a4a8ffe5a..970a37074f 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -348,9 +348,6 @@ SIMPLE_TEST_STEP(ClipRect, clipRect(d.fRect)); SIMPLE_TEST_STEP(ClipPath, clipPath(d.fPath)); SIMPLE_TEST_STEP(ClipRegion, clipRegion(d.fRegion, SkRegion::kReplace_Op)); SIMPLE_TEST_STEP(Clear, clear(d.fColor)); -SIMPLE_TEST_STEP(BeginGroup, beginCommentGroup(d.fText.c_str())); -SIMPLE_TEST_STEP(AddComment, addComment(d.fText.c_str(), d.fText.c_str())); -SIMPLE_TEST_STEP(EndGroup, endCommentGroup()); /////////////////////////////////////////////////////////////////////////////// // Complex test steps diff --git a/tests/RecorderTest.cpp b/tests/RecorderTest.cpp index e67de58acb..829fe3e229 100644 --- a/tests/RecorderTest.cpp +++ b/tests/RecorderTest.cpp @@ -50,25 +50,6 @@ DEF_TEST(Recorder, r) { REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>()); } -// All of Skia will work fine without support for comment groups, but -// Chrome's inspector can break. This serves as a simple regression test. -DEF_TEST(Recorder_CommentGroups, r) { - SkRecord record; - SkRecorder recorder(&record, 1920, 1080); - - recorder.beginCommentGroup("test"); - recorder.addComment("foo", "bar"); - recorder.addComment("baz", "quux"); - recorder.endCommentGroup(); - - Tally tally; - tally.apply(record); - - REPORTER_ASSERT(r, 1 == tally.count<SkRecords::BeginCommentGroup>()); - REPORTER_ASSERT(r, 2 == tally.count<SkRecords::AddComment>()); - REPORTER_ASSERT(r, 1 == tally.count<SkRecords::EndCommentGroup>()); -} - // Regression test for leaking refs held by optional arguments. DEF_TEST(Recorder_RefLeaking, r) { // We use SaveLayer to test: |