OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "core/rendering/RenderTableRow.h" | 28 #include "core/rendering/RenderTableRow.h" |
29 | 29 |
30 #include "FrameTestHelpers.h" | 30 #include "FrameTestHelpers.h" |
31 #include "WebFrame.h" | 31 #include "WebFrame.h" |
32 #include "WebFrameImpl.h" | 32 #include "WebLocalFrameImpl.h" |
33 #include "WebView.h" | 33 #include "WebView.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
36 | 36 |
37 #include <gtest/gtest.h> | 37 #include <gtest/gtest.h> |
38 | 38 |
39 using namespace blink; | 39 using namespace blink; |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
(...skipping 10 matching lines...) Expand all Loading... |
53 s_webViewHelper->webView()->setFocus(true); | 53 s_webViewHelper->webView()->setFocus(true); |
54 } | 54 } |
55 | 55 |
56 static void TearDownTestCase() | 56 static void TearDownTestCase() |
57 { | 57 { |
58 delete s_webViewHelper; | 58 delete s_webViewHelper; |
59 } | 59 } |
60 | 60 |
61 static Document* document() | 61 static Document* document() |
62 { | 62 { |
63 return toWebFrameImpl(s_webViewHelper->webView()->mainFrame())->frame()-
>document(); | 63 return toWebLocalFrameImpl(s_webViewHelper->webView()->mainFrame())->fra
me()->document(); |
64 } | 64 } |
65 | 65 |
66 virtual void SetUp() | 66 virtual void SetUp() |
67 { | 67 { |
68 m_row = RenderTableRow::createAnonymous(document()); | 68 m_row = RenderTableRow::createAnonymous(document()); |
69 } | 69 } |
70 | 70 |
71 virtual void TearDown() | 71 virtual void TearDown() |
72 { | 72 { |
73 m_row->destroy(); | 73 m_row->destroy(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 TEST_F(RenderTableRowDeathTest, CrashIfSettingUnsetRowIndex) | 106 TEST_F(RenderTableRowDeathTest, CrashIfSettingUnsetRowIndex) |
107 { | 107 { |
108 ASSERT_DEATH(m_row->setRowIndex(unsetRowIndex), ""); | 108 ASSERT_DEATH(m_row->setRowIndex(unsetRowIndex), ""); |
109 } | 109 } |
110 | 110 |
111 #endif | 111 #endif |
112 | 112 |
113 } | 113 } |
114 | 114 |
115 } // namespace WebCore | 115 } // namespace WebCore |
OLD | NEW |