| Index: Source/web/tests/WebFrameTest.cpp
|
| diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
|
| index 7843934fc0f09ddb6ef58ca0c52987d5a8236ca1..5e337fad4aeb83254a18e9df2ec0b99d7e3a715b 100644
|
| --- a/Source/web/tests/WebFrameTest.cpp
|
| +++ b/Source/web/tests/WebFrameTest.cpp
|
| @@ -4800,15 +4800,17 @@ TEST_F(WebFrameTest, MoveCaretSelectionTowardsWindowPointWithNoSelection)
|
|
|
| TEST_F(WebFrameTest, NavigateToSandboxedMarkup)
|
| {
|
| + FrameTestHelpers::TestWebFrameClient webFrameClient;
|
| FrameTestHelpers::WebViewHelper webViewHelper;
|
| - WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad("about:blank", true);
|
| + WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad("about:blank", true, &webFrameClient);
|
| WebLocalFrameImpl* frame = toWebLocalFrameImpl(webViewHelper.webView()->mainFrame());
|
|
|
| frame->document().setIsTransitionDocument();
|
|
|
| std::string markup("<div id='foo'></div><script>document.getElementById('foo').setAttribute('dir', 'rtl')</script>");
|
| frame->navigateToSandboxedMarkup(WebData(markup.data(), markup.length()));
|
| - FrameTestHelpers::runPendingTasks();
|
| +
|
| + webFrameClient.waitForLoadToComplete();
|
|
|
| WebDocument document = webViewImpl->mainFrame()->document();
|
| WebElement transitionElement = document.getElementById("foo");
|
|
|