OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "app/table_model.h" | 7 #include "app/table_model.h" |
8 #include "app/table_model_observer.h" | 8 #include "app/table_model_observer.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 TEST_F(TableViewTest, DISABLED_PersistMultiSelectionOnAdd) { | 388 TEST_F(TableViewTest, DISABLED_PersistMultiSelectionOnAdd) { |
389 SetUpMultiSelectTestState(false); | 389 SetUpMultiSelectTestState(false); |
390 if (HasFatalFailure()) | 390 if (HasFatalFailure()) |
391 return; | 391 return; |
392 | 392 |
393 model_->AddRow(3, 4, 4); | 393 model_->AddRow(3, 4, 4); |
394 | 394 |
395 VerifySelectedRows(1, 0, -1); | 395 VerifySelectedRows(1, 0, -1); |
396 } | 396 } |
397 | 397 |
398 TEST_F(NullModelTableViewTest, NullModel) { | 398 // Crashing: http://crbug.com/45015 |
| 399 TEST_F(NullModelTableViewTest, DISABLED_NullModel) { |
399 // There's nothing explicit to test. If there is a bug in TableView relating | 400 // There's nothing explicit to test. If there is a bug in TableView relating |
400 // to a NULL model we'll crash. | 401 // to a NULL model we'll crash. |
401 } | 402 } |
402 | 403 |
403 #endif // OS_WIN | 404 #endif // OS_WIN |
404 | 405 |
405 //////////////////////////////////////////////////////////////////////////////// | 406 //////////////////////////////////////////////////////////////////////////////// |
406 // TableView2 Tests | 407 // TableView2 Tests |
407 | 408 |
408 class TableView2Test : public testing::Test, views::WindowDelegate { | 409 class TableView2Test : public testing::Test, views::WindowDelegate { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 table_->FocusRow(0); | 565 table_->FocusRow(0); |
565 EXPECT_EQ(0, table_->GetFirstFocusedRow()); | 566 EXPECT_EQ(0, table_->GetFirstFocusedRow()); |
566 | 567 |
567 table_->FocusRow(2); | 568 table_->FocusRow(2); |
568 EXPECT_EQ(2, table_->GetFirstFocusedRow()); | 569 EXPECT_EQ(2, table_->GetFirstFocusedRow()); |
569 | 570 |
570 table_->ClearRowFocus(); | 571 table_->ClearRowFocus(); |
571 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); | 572 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); |
572 } | 573 } |
573 #endif | 574 #endif |
OLD | NEW |