Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@9738 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/poly2poly.cpp b/gm/poly2poly.cpp
index fda0474..c36ac85 100644
--- a/gm/poly2poly.cpp
+++ b/gm/poly2poly.cpp
@@ -14,18 +14,18 @@
void save();
void restore();
-
+
double lineWidth;
void setLineWidth(double);
-
+
void beginPath();
void moveTo(double x, double y);
void lineTo(double x, double y);
void closePath();
-
+
void fill();
void stroke();
-
+
void fillText(const char text[], double x, double y);
private:
@@ -95,7 +95,7 @@
path.reset(); path.moveTo(0, 0); path.lineTo(100, 100); path.moveTo(200, 200);
dump(path);
}
-
+
#if 0
// TEST 1 - The rectangle as it's expected to look
var canvas = document.createElement('canvas');
@@ -113,15 +113,15 @@
ctx.lineTo(150, 15);
ctx.lineTo(10, 15);
ctx.closePath();
-
+
// no extra moveTo here
// ctx.moveTo(175, 125);
-
+
ctx.stroke();
ctx.restore();
-
+
ctx.fillText("As Expected", 10, 10);
-
+
#if 0
// TEST 2 - Includes an extra moveTo call before stroke; the rectangle appears larger
canvas = document.createElement('canvas');
@@ -139,14 +139,14 @@
ctx.lineTo(150, 15);
ctx.lineTo(10, 15);
ctx.closePath();
-
+
ctx.moveTo(175, 125);
-
+
ctx.stroke();
ctx.restore();
-
+
ctx.fillText("Larger Rectangle", 10, 10);
-
+
#if 0
// TEST 3 - Identical to test 2 except the line width is 1
canvas = document.createElement('canvas');
@@ -164,12 +164,12 @@
ctx.lineTo(150, 15);
ctx.lineTo(10, 15);
ctx.closePath();
-
+
ctx.moveTo(175, 125);
-
+
ctx.stroke();
ctx.restore();
-
+
ctx.fillText("As Expected - line width 1", 10, 10);
}
@@ -269,4 +269,3 @@
//////////////////////////////////////////////////////////////////////////////
DEF_GM( return new Poly2PolyGM; )
-