Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1125)

Unified Diff: content/shell/renderer/test_runner/TestPlugin.cpp

Issue 148453012: Chrome requires WebTouchPoint to store WebFloatPoint, instead of WebPoint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/TestPlugin.cpp
diff --git a/content/shell/renderer/test_runner/TestPlugin.cpp b/content/shell/renderer/test_runner/TestPlugin.cpp
index cad1d55e656aeb65711b42399f9d2c603eac70a9..88404c982074b3fd7670485ed2f4bdbe0cc1df70 100644
--- a/content/shell/renderer/test_runner/TestPlugin.cpp
+++ b/content/shell/renderer/test_runner/TestPlugin.cpp
@@ -85,7 +85,12 @@ void printTouchList(WebTestDelegate* delegate, const WebTouchPoint* points, int
{
for (int i = 0; i < length; ++i) {
char buffer[100];
- snprintf(buffer, sizeof(buffer), "* %d, %d: %s\n", static_cast<int>(points[i].position.x), static_cast<int>(points[i].position.y), pointState(points[i].state));
+ snprintf(buffer,
+ sizeof(buffer),
+ "* %f, %f: %s\n",
+ points[i].position.x,
+ points[i].position.y,
+ pointState(points[i].state));
delegate->printMessage(buffer);
}
}

Powered by Google App Engine
This is Rietveld 408576698