OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "core/html/HTMLTableRowElement.h" | 5 #include "core/html/HTMLTableRowElement.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/html/HTMLParagraphElement.h" | 8 #include "core/html/HTMLParagraphElement.h" |
9 #include "core/html/HTMLTableElement.h" | 9 #include "core/html/HTMLTableElement.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 HTMLParagraphElement::create(*document); | 48 HTMLParagraphElement::create(*document); |
49 RefPtrWillBeRawPtr<HTMLTableRowElement> row = | 49 RefPtrWillBeRawPtr<HTMLTableRowElement> row = |
50 HTMLTableRowElement::create(*document); | 50 HTMLTableRowElement::create(*document); |
51 table->appendChild(paragraph); | 51 table->appendChild(paragraph); |
52 paragraph->appendChild(row); | 52 paragraph->appendChild(row); |
53 EXPECT_EQ(-1, row->rowIndex()) | 53 EXPECT_EQ(-1, row->rowIndex()) |
54 << "rows in a table, but within an unrelated element, should have " | 54 << "rows in a table, but within an unrelated element, should have " |
55 << "row index -1"; | 55 << "row index -1"; |
56 } | 56 } |
57 | 57 |
58 } | 58 } // namespace |
OLD | NEW |