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

Side by Side Diff: third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp

Issue 2384033002: reflow comments in web/tests (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 EXPECT_FLOAT_EQ(10.4f, 478 EXPECT_FLOAT_EQ(10.4f,
479 platformTouchBuilder.touchPoints()[0].screenPos().y()); 479 platformTouchBuilder.touchPoints()[0].screenPos().y());
480 EXPECT_FLOAT_EQ(5.3f, platformTouchBuilder.touchPoints()[0].pos().x()); 480 EXPECT_FLOAT_EQ(5.3f, platformTouchBuilder.touchPoints()[0].pos().x());
481 EXPECT_FLOAT_EQ(5.2f, platformTouchBuilder.touchPoints()[0].pos().y()); 481 EXPECT_FLOAT_EQ(5.2f, platformTouchBuilder.touchPoints()[0].pos().y());
482 EXPECT_FLOAT_EQ(5.3f, 482 EXPECT_FLOAT_EQ(5.3f,
483 platformTouchBuilder.touchPoints()[0].radius().width()); 483 platformTouchBuilder.touchPoints()[0].radius().width());
484 EXPECT_FLOAT_EQ(5.2f, 484 EXPECT_FLOAT_EQ(5.2f,
485 platformTouchBuilder.touchPoints()[0].radius().height()); 485 platformTouchBuilder.touchPoints()[0].radius().height());
486 } 486 }
487 487
488 // Reverse builders should *not* go back to physical pixels, as they are used for plugins 488 // Reverse builders should *not* go back to physical pixels, as they are used
489 // which expect CSS pixel coordinates. 489 // for plugins which expect CSS pixel coordinates.
490 { 490 {
491 PlatformMouseEvent platformMouseEvent( 491 PlatformMouseEvent platformMouseEvent(
492 IntPoint(10, 10), IntPoint(10, 10), WebPointerProperties::Button::Left, 492 IntPoint(10, 10), IntPoint(10, 10), WebPointerProperties::Button::Left,
493 PlatformEvent::MouseMoved, 1, PlatformEvent::NoModifiers, 493 PlatformEvent::MouseMoved, 1, PlatformEvent::NoModifiers,
494 PlatformMouseEvent::RealOrIndistinguishable, 0); 494 PlatformMouseEvent::RealOrIndistinguishable, 0);
495 MouseEvent* mouseEvent = MouseEvent::create( 495 MouseEvent* mouseEvent = MouseEvent::create(
496 EventTypeNames::mousemove, domWindow, platformMouseEvent, 0, document); 496 EventTypeNames::mousemove, domWindow, platformMouseEvent, 0, document);
497 WebMouseEventBuilder webMouseBuilder(view, documentLayoutView, *mouseEvent); 497 WebMouseEventBuilder webMouseBuilder(view, documentLayoutView, *mouseEvent);
498 498
499 EXPECT_EQ(10, webMouseBuilder.x); 499 EXPECT_EQ(10, webMouseBuilder.x);
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 EXPECT_EQ(ScrollInertialPhaseNonMomentum, 1244 EXPECT_EQ(ScrollInertialPhaseNonMomentum,
1245 platformGestureBuilder.inertialPhase()); 1245 platformGestureBuilder.inertialPhase());
1246 EXPECT_TRUE(platformGestureBuilder.synthetic()); 1246 EXPECT_TRUE(platformGestureBuilder.synthetic());
1247 EXPECT_EQ(ScrollGranularity::ScrollByPage, 1247 EXPECT_EQ(ScrollGranularity::ScrollByPage,
1248 platformGestureBuilder.deltaUnits()); 1248 platformGestureBuilder.deltaUnits());
1249 EXPECT_EQ(12345U, platformGestureBuilder.uniqueTouchEventId()); 1249 EXPECT_EQ(12345U, platformGestureBuilder.uniqueTouchEventId());
1250 } 1250 }
1251 } 1251 }
1252 1252
1253 } // namespace blink 1253 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698