Home | History | Annotate | Download | only in tests

Lines Matching refs:frame

52 // The frame test helpers coordinate frame loads in a carefully choreographed
67 TestWebFrameClient* testClientForFrame(WebFrame* frame)
69 return static_cast<TestWebFrameClient*>(toWebLocalFrameImpl(frame)->client());
109 void pumpPendingRequests(WebFrame* frame)
111 Platform::current()->currentThread()->postTask(new ServeAsyncRequestsTask(testClientForFrame(frame)));
117 LoadTask(WebFrame* frame, const WebURLRequest& request)
118 : m_frame(frame)
135 LoadHTMLStringTask(WebFrame* frame, const std::string& html, const WebURL& baseURL)
136 : m_frame(frame)
155 LoadHistoryItemTask(WebFrame* frame, const WebHistoryItem& item, WebHistoryLoadType loadType, WebURLRequest::CachePolicy cachePolicy)
156 : m_frame(frame)
177 ReloadTask(WebFrame* frame, bool ignoreCache)
178 : m_frame(frame)
207 void loadFrame(WebFrame* frame, const std::string& url)
213 Platform::current()->currentThread()->postTask(new LoadTask(frame, urlRequest));
214 pumpPendingRequests(frame);
217 void loadHTMLString(WebFrame* frame, const std::string& html, const WebURL& baseURL)
219 Platform::current()->currentThread()->postTask(new LoadHTMLStringTask(frame, html, baseURL));
220 pumpPendingRequests(frame);
223 void loadHistoryItem(WebFrame* frame, const WebHistoryItem& item, WebHistoryLoadType loadType, WebURLRequest::CachePolicy cachePolicy)
225 Platform::current()->currentThread()->postTask(new LoadHistoryItemTask(frame, item, loadType, cachePolicy));
226 pumpPendingRequests(frame);
229 void reloadFrame(WebFrame* frame)
231 Platform::current()->currentThread()->postTask(new ReloadTask(frame, false));
232 pumpPendingRequests(frame);
235 void reloadFrameIgnoringCache(WebFrame* frame)
237 Platform::current()->currentThread()->postTask(new ReloadTask(frame, true));
238 pumpPendingRequests(frame);
241 void pumpPendingRequestsDoNotUse(WebFrame* frame)
243 pumpPendingRequests(frame);
309 WebFrame* frame = WebLocalFrame::create(this);
310 parent->appendChild(frame);
311 return frame;
314 void TestWebFrameClient::frameDetached(WebFrame* frame)
316 if (frame->parent())
317 frame->parent()->removeChild(frame);
318 frame->close();