OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 27 matching lines...) Expand all Loading... |
38 { | 38 { |
39 RenderingTest::SetUp(); | 39 RenderingTest::SetUp(); |
40 m_cell = LayoutTableCell::createAnonymous(&document()); | 40 m_cell = LayoutTableCell::createAnonymous(&document()); |
41 } | 41 } |
42 | 42 |
43 virtual void TearDown() | 43 virtual void TearDown() |
44 { | 44 { |
45 m_cell->destroy(); | 45 m_cell->destroy(); |
46 } | 46 } |
47 | 47 |
48 RawPtrWillBePersistent<LayoutTableCell> m_cell; | 48 LayoutTableCell* m_cell; |
49 }; | 49 }; |
50 | 50 |
51 TEST_F(LayoutTableCellDeathTest, CanSetColumn) | 51 TEST_F(LayoutTableCellDeathTest, CanSetColumn) |
52 { | 52 { |
53 static const unsigned columnIndex = 10; | 53 static const unsigned columnIndex = 10; |
54 m_cell->setCol(columnIndex); | 54 m_cell->setCol(columnIndex); |
55 EXPECT_EQ(columnIndex, m_cell->col()); | 55 EXPECT_EQ(columnIndex, m_cell->col()); |
56 } | 56 } |
57 | 57 |
58 TEST_F(LayoutTableCellDeathTest, CanSetColumnToMaxColumnIndex) | 58 TEST_F(LayoutTableCellDeathTest, CanSetColumnToMaxColumnIndex) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 { | 107 { |
108 setBodyInnerHTML("<table><td rowspan='8190'></td></table>"); | 108 setBodyInnerHTML("<table><td rowspan='8190'></td></table>"); |
109 | 109 |
110 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f
irstChild()->firstChild()->firstChild()->renderer()); | 110 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f
irstChild()->firstChild()->firstChild()->renderer()); |
111 ASSERT_EQ(cell->rowSpan(), 8190U); | 111 ASSERT_EQ(cell->rowSpan(), 8190U); |
112 } | 112 } |
113 | 113 |
114 } | 114 } |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
OLD | NEW |