Home | History | Annotate | Download | only in qwebframe

Lines Matching full:frame

2084     QWebFrame* frame = page.mainFrame();
2086 frame->addToJavaScriptWindowObject("test", qobject, QScriptEngine::ScriptOwnership);
2094 QCOMPARE(frame->evaluateJavaScript(script).toString(), QString::fromLatin1("Qt"));
2260 QWebFrame* frame = page.mainFrame();
2267 frame->setUrl(QUrl("qrc:/test1.html"));
2268 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2270 QCOMPARE(frame->requestedUrl(), QUrl("qrc:/test1.html"));
2271 QCOMPARE(frame->url(), QUrl("qrc:/test2.html"));
2273 frame->setUrl(QUrl("qrc:/non-existent.html"));
2274 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2276 QCOMPARE(frame->requestedUrl(), QUrl("qrc:/non-existent.html"));
2277 QCOMPARE(frame->url(), QUrl("qrc:/non-existent.html"));
2279 frame->setUrl(QUrl("http://abcdef.abcdef"));
2280 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2282 QCOMPARE(frame->requestedUrl(), QUrl("http://abcdef.abcdef/"));
2283 QCOMPARE(frame->url(), QUrl("http://abcdef.abcdef/"));
2290 frame->setUrl(QUrl("qrc:/fake-ssl-error.html"));
2291 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2293 QCOMPARE(frame->requestedUrl(), QUrl("qrc:/fake-ssl-error.html"));
2294 QCOMPARE(frame->url(), QUrl("qrc:/fake-ssl-error.html"));
2309 QWebFrame* frame = page.mainFrame();
2310 QSignalSpy spy(frame, SIGNAL(javaScriptWindowObjectCleared()));
2312 frame->setHtml(html);
2321 QWebFrame* frame = page.mainFrame();
2322 QSignalSpy spy(frame, SIGNAL(javaScriptWindowObjectCleared()));
2323 frame->setHtml("<html></html>");
2325 frame->evaluateJavaScript("var a = 'a';");
2328 frame->evaluateJavaScript("var a = 1;");
2344 QWebFrame* frame = page.mainFrame();
2348 frame->setHtml(html);
2349 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2352 QCOMPARE(frame->evaluateJavaScript("document.images.length").toInt(), 1);
2353 QCOMPARE(frame->evaluateJavaScript("document.images[0].width").toInt(), 128);
2354 QCOMPARE(frame->evaluateJavaScript("document.images[0].height").toInt(), 128);
2367 frame->setHtml(html2);
2368 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2371 QWebElement p = frame->documentElement().findAll("p").at(0);
2385 QWebFrame* frame = page.mainFrame();
2390 frame->setHtml(html, QUrl::fromLocalFile(TESTS_SOURCE_DIR));
2391 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2394 QCOMPARE(frame->evaluateJavaScript("document.images.length").toInt(), 1);
2395 QCOMPARE(frame->evaluateJavaScript("document.images[0].width").toInt(), 128);
2396 QCOMPARE(frame->evaluateJavaScript("document.images[0].height").toInt(), 128);
2520 QWebFrame* frame = page.mainFrame();
2521 frame->setHtml(html);
2523 QWebHitTestResult result = frame->hitTestContent(QPoint(10, 100));
2551 QWebFrame* frame = page.mainFrame();
2552 frame->addToJavaScriptWindowObject("test", ptr, QScriptEngine::ScriptOwnership);
2562 QWebFrame* frame = page.mainFrame();
2563 frame->addToJavaScriptWindowObject("test", ptr, QScriptEngine::QtOwnership);
2572 QWebFrame* frame = page.mainFrame();
2573 frame->addToJavaScriptWindowObject("test", child, QScriptEngine::QtOwnership);
2574 QVariant v = frame->evaluateJavaScript("test");
2577 v = frame->evaluateJavaScript("test");
2585 QWebFrame* frame = page.mainFrame();
2586 frame->addToJavaScriptWindowObject("test", ptr, QScriptEngine::AutoOwnership);
2597 QWebFrame* frame = page.mainFrame();
2598 frame->addToJavaScriptWindowObject("test", child, QScriptEngine::AutoOwnership);
2659 QWebFrame* frame = children.at(0);
2663 frame->setHtml(innerHtml);
2665 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200);
2694 QWebFrame *frame = frames.at(0);
2696 frame->setHtml(innerHtml);
2705 frame->render(&painter1, QWebFrame::ContentsLayer);
2708 QCOMPARE(size.width(), picture.boundingRect().width() + frame->scrollBarGeometry(Qt::Vertical).width());
2709 QCOMPARE(size.height(), picture.boundingRect().height() + frame->scrollBarGeometry(Qt::Horizontal).height());
2713 frame->render(&painter2, QWebFrame::AllLayers);
2728 QWebFrame* frame = page.mainFrame();
2729 frame->setHtml(html);
2730 frame->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
2731 frame->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);
2734 frame->setScrollPosition(QPoint(23, 29));
2735 QCOMPARE(frame->scrollPosition().x(), 23);
2736 QCOMPARE(frame->scrollPosition().y(), 29);
2738 int x = frame->evaluateJavaScript("window.scrollX").toInt();
2739 int y = frame->evaluateJavaScript("window.scrollY").toInt();
2805 // a nested frame set
2806 // The main frame scrolls
2842 // verify parent and child frame's scroll postion did not change