| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 FrameTestHelpers::LoadFrame(web_view_helper_.WebView()->MainFrame(), | 175 FrameTestHelpers::LoadFrame(web_view_helper_.WebView()->MainFrame(), |
| 176 std::string(base_url) + file_name); | 176 std::string(base_url) + file_name); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void NavigateAway() { | 179 void NavigateAway() { |
| 180 FrameTestHelpers::LoadFrame(web_view_helper_.WebView()->MainFrame(), | 180 FrameTestHelpers::LoadFrame(web_view_helper_.WebView()->MainFrame(), |
| 181 "about:blank"); | 181 "about:blank"); |
| 182 } | 182 } |
| 183 | 183 |
| 184 void Close() { | 184 void Close() { |
| 185 web_view_helper_.WebView()->MainFrame()->CollectGarbage(); | 185 web_view_helper_.WebView()->MainFrameImpl()->CollectGarbage(); |
| 186 web_view_helper_.Reset(); | 186 web_view_helper_.Reset(); |
| 187 | 187 |
| 188 WebCache::Clear(); | 188 WebCache::Clear(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 Element& Console() { | 191 Element& Console() { |
| 192 Document* document = | 192 Document* document = |
| 193 web_view_helper_.WebView()->MainFrameImpl()->GetFrame()->GetDocument(); | 193 web_view_helper_.WebView()->MainFrameImpl()->GetFrame()->GetDocument(); |
| 194 Element* console = document->getElementById("console"); | 194 Element* console = document->getElementById("console"); |
| 195 DCHECK(isHTMLUListElement(console)); | 195 DCHECK(isHTMLUListElement(console)); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 WebPrerender rel_next_and_prerender = | 469 WebPrerender rel_next_and_prerender = |
| 470 PrerendererClient()->ReleaseWebPrerender(); | 470 PrerendererClient()->ReleaseWebPrerender(); |
| 471 EXPECT_EQ(ToWebURL("http://rel-next-and-prerender.com/"), | 471 EXPECT_EQ(ToWebURL("http://rel-next-and-prerender.com/"), |
| 472 rel_next_and_prerender.Url()); | 472 rel_next_and_prerender.Url()); |
| 473 EXPECT_EQ( | 473 EXPECT_EQ( |
| 474 static_cast<unsigned>(kPrerenderRelTypeNext | kPrerenderRelTypePrerender), | 474 static_cast<unsigned>(kPrerenderRelTypeNext | kPrerenderRelTypePrerender), |
| 475 rel_next_and_prerender.RelTypes()); | 475 rel_next_and_prerender.RelTypes()); |
| 476 } | 476 } |
| 477 | 477 |
| 478 } // namespace blink | 478 } // namespace blink |
| OLD | NEW |