diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 13:28:10 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 13:28:10 +0000 |
commit | 35349d80b3564123fffd7bf75fc6069c314dcfc1 (patch) | |
tree | b9b037c113ff7b1094ef7f3ab96fa74d5ccf99fe /tests | |
parent | 15ec2ea61712f62e955ee5f5a1878dc55e11583f (diff) |
Revert r11342 (Add infrastructure for testing the debugger code) due to build breakages
git-svn-id: http://skia.googlecode.com/svn/trunk@11343 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DebugCanvasTest.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/DebugCanvasTest.cpp b/tests/DebugCanvasTest.cpp deleted file mode 100644 index ecc7c75f18..0000000000 --- a/tests/DebugCanvasTest.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2013 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "Test.h" -#include "debugger/SkDebugCanvas.h" - -static void test_debugRect(skiatest::Reporter* reporter) { - SkDebugCanvas canvas(100, 100); - canvas.drawRect(SkRect::MakeWH(100, 100), SkPaint()); - - const SkTDArray<SkDrawCommand*> cmds = canvas.getDrawCommands(); - REPORTER_ASSERT(reporter, cmds.count() > 0); - - const SkTDArray<SkString*>& result = *cmds[0]->Info(); - REPORTER_ASSERT(reporter, result.count() > 0); - - SkString expected("SkRect: (0, 0, 100, 100)"); - REPORTER_ASSERT(reporter, expected == *result[0]); -} - -static void TestDebugCanvas(skiatest::Reporter* reporter) { - test_debugRect(reporter); -} - -#include "TestClassDef.h" -DEFINE_TESTCLASS("DebugCanvas", TestDebugCanvasClass, TestDebugCanvas) |