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

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: Removing ugly floating point error fix 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 7293cb4247ba88241ebac9ae51cbd0ec0f5b97cc..b416808e3f5a748195f773bb5b9d443ce691328d 100644
--- a/content/shell/renderer/test_runner/TestPlugin.cpp
+++ b/content/shell/renderer/test_runner/TestPlugin.cpp
@@ -89,7 +89,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