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

Side by Side Diff: Source/core/layout/LayoutTableCellTest.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 #endif 78 #endif
79 79
80 class LayoutTableCellTest : public RenderingTest { }; 80 class LayoutTableCellTest : public RenderingTest { };
81 81
82 TEST_F(LayoutTableCellTest, ResetColspanIfTooBig) 82 TEST_F(LayoutTableCellTest, ResetColspanIfTooBig)
83 { 83 {
84 setBodyInnerHTML("<table><td colspan='14000'></td></table>"); 84 setBodyInnerHTML("<table><td colspan='14000'></td></table>");
85 85
86 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f irstChild()->firstChild()->firstChild()->renderer()); 86 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f irstChild()->firstChild()->firstChild()->layoutObject());
87 ASSERT_EQ(cell->colSpan(), 8190U); 87 ASSERT_EQ(cell->colSpan(), 8190U);
88 } 88 }
89 89
90 TEST_F(LayoutTableCellTest, DoNotResetColspanJustBelowBoundary) 90 TEST_F(LayoutTableCellTest, DoNotResetColspanJustBelowBoundary)
91 { 91 {
92 setBodyInnerHTML("<table><td colspan='8190'></td></table>"); 92 setBodyInnerHTML("<table><td colspan='8190'></td></table>");
93 93
94 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f irstChild()->firstChild()->firstChild()->renderer()); 94 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f irstChild()->firstChild()->firstChild()->layoutObject());
95 ASSERT_EQ(cell->colSpan(), 8190U); 95 ASSERT_EQ(cell->colSpan(), 8190U);
96 } 96 }
97 97
98 TEST_F(LayoutTableCellTest, ResetRowspanIfTooBig) 98 TEST_F(LayoutTableCellTest, ResetRowspanIfTooBig)
99 { 99 {
100 setBodyInnerHTML("<table><td rowspan='14000'></td></table>"); 100 setBodyInnerHTML("<table><td rowspan='14000'></td></table>");
101 101
102 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f irstChild()->firstChild()->firstChild()->renderer()); 102 LayoutTableCell* cell = toLayoutTableCell(document().body()->firstChild()->f irstChild()->firstChild()->firstChild()->layoutObject());
103 ASSERT_EQ(cell->rowSpan(), 8190U); 103 ASSERT_EQ(cell->rowSpan(), 8190U);
104 } 104 }
105 105
106 TEST_F(LayoutTableCellTest, DoNotResetRowspanJustBelowBoundary) 106 TEST_F(LayoutTableCellTest, DoNotResetRowspanJustBelowBoundary)
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()->layoutObject());
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698