summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop/drag_drop_tracker_unittest.cc
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-19 20:48:01 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-19 20:48:01 +0000
commitfca26bb7f954de3dd4ca83556b5b22f019a7c7bc (patch)
tree9859ae157a852547057b68e6f8abf81df08de83e /ash/drag_drop/drag_drop_tracker_unittest.cc
parentfe9f89a741d5939d0b59f06876d4a1ec4a45b8e3 (diff)
downloadchromium_src-fca26bb7f954de3dd4ca83556b5b22f019a7c7bc.zip
chromium_src-fca26bb7f954de3dd4ca83556b5b22f019a7c7bc.tar.gz
chromium_src-fca26bb7f954de3dd4ca83556b5b22f019a7c7bc.tar.bz2
Revert 157597 - Enable UpdateDisplay to specify host origins.
UpdateDisplayWithHostOrigin test fails on Win Aura. ---- This is needed for testing coordinate conversions by way of native screen coordinates. BUG=148686 Review URL: https://chromiumcodereview.appspot.com/10914308 TBR=mazda@chromium.org Review URL: https://codereview.chromium.org/10945035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/drag_drop/drag_drop_tracker_unittest.cc')
-rw-r--r--ash/drag_drop/drag_drop_tracker_unittest.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/ash/drag_drop/drag_drop_tracker_unittest.cc b/ash/drag_drop/drag_drop_tracker_unittest.cc
index a090696..bec790c 100644
--- a/ash/drag_drop/drag_drop_tracker_unittest.cc
+++ b/ash/drag_drop/drag_drop_tracker_unittest.cc
@@ -19,7 +19,7 @@ class DragDropTrackerTest : public test::AshTestBase {
public:
virtual void SetUp() OVERRIDE {
AshTestBase::SetUp();
- UpdateDisplay("200x200,200x200");
+ UpdateDisplay("0+0-200x200,0+201-200x200");
}
static aura::Window* CreateTestWindow(const gfx::Rect& bounds,
@@ -147,8 +147,8 @@ TEST_F(DragDropTrackerTest, MAYBE_ConvertMouseEvent) {
window0.get(),
original00));
EXPECT_EQ(original00.type(), converted00->type());
- EXPECT_EQ("50,50", converted00->location().ToString());
- EXPECT_EQ("50,50", converted00->root_location().ToString());
+ EXPECT_EQ(gfx::Point(50, 50), converted00->location());
+ EXPECT_EQ(gfx::Point(50, 50), converted00->root_location());
EXPECT_EQ(original00.flags(), converted00->flags());
// Start tracking from the RootWindow0 and converts the mouse event into
@@ -161,8 +161,8 @@ TEST_F(DragDropTrackerTest, MAYBE_ConvertMouseEvent) {
window1.get(),
original01));
EXPECT_EQ(original01.type(), converted01->type());
- EXPECT_EQ("50,50", converted01->location().ToString());
- EXPECT_EQ("150,150", converted01->root_location().ToString());
+ EXPECT_EQ(gfx::Point(50, 50), converted01->location());
+ EXPECT_EQ(gfx::Point(150, 150), converted01->root_location());
EXPECT_EQ(original01.flags(), converted01->flags());
// Start tracking from the RootWindow1 and converts the mouse event into
@@ -175,8 +175,8 @@ TEST_F(DragDropTrackerTest, MAYBE_ConvertMouseEvent) {
window0.get(),
original10));
EXPECT_EQ(original10.type(), converted10->type());
- EXPECT_EQ("50,50", converted10->location().ToString());
- EXPECT_EQ("50,50", converted10->root_location().ToString());
+ EXPECT_EQ(gfx::Point(50, 50), converted10->location());
+ EXPECT_EQ(gfx::Point(50, 50), converted10->root_location());
EXPECT_EQ(original10.flags(), converted10->flags());
// Start tracking from the RootWindow1 and converts the mouse event into
@@ -189,8 +189,8 @@ TEST_F(DragDropTrackerTest, MAYBE_ConvertMouseEvent) {
window1.get(),
original11));
EXPECT_EQ(original11.type(), converted11->type());
- EXPECT_EQ("50,50", converted11->location().ToString());
- EXPECT_EQ("150,150", converted11->root_location().ToString());
+ EXPECT_EQ(gfx::Point(50, 50), converted11->location());
+ EXPECT_EQ(gfx::Point(150, 150), converted11->root_location());
EXPECT_EQ(original11.flags(), converted11->flags());
}