| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ppapi/tests/test_view.h" | 5 #include "ppapi/tests/test_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <sstream> | 9 #include <sstream> |
| 8 | 10 |
| 9 #include "ppapi/c/pp_time.h" | 11 #include "ppapi/c/pp_time.h" |
| 10 #include "ppapi/c/private/ppb_testing_private.h" | 12 #include "ppapi/c/private/ppb_testing_private.h" |
| 11 #include "ppapi/cpp/completion_callback.h" | 13 #include "ppapi/cpp/completion_callback.h" |
| 12 #include "ppapi/tests/testing_instance.h" | 14 #include "ppapi/tests/testing_instance.h" |
| 13 | 15 |
| 14 REGISTER_TEST_CASE(View); | 16 REGISTER_TEST_CASE(View); |
| 15 | 17 |
| 16 TestView::TestView(TestingInstance* instance) | 18 TestView::TestView(TestingInstance* instance) |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 188 |
| 187 instance_->EvalScript("window.scrollTo(0, 0);"); | 189 instance_->EvalScript("window.scrollTo(0, 0);"); |
| 188 | 190 |
| 189 while (WaitUntilViewChanged() && | 191 while (WaitUntilViewChanged() && |
| 190 last_view_.GetScrollOffset() != pp::Point(0, 0)) { | 192 last_view_.GetScrollOffset() != pp::Point(0, 0)) { |
| 191 } | 193 } |
| 192 ASSERT_EQ(pp::Point(0, 0), last_view_.GetScrollOffset()); | 194 ASSERT_EQ(pp::Point(0, 0), last_view_.GetScrollOffset()); |
| 193 | 195 |
| 194 PASS(); | 196 PASS(); |
| 195 } | 197 } |
| OLD | NEW |