Lines Matching refs:html
2103 QUrl dataUrl("data:text/html,<h1>Test");
2117 QUrl dataUrl2("data:text/html,<h1>Test2");
2118 QUrl dataUrl3("data:text/html,<h1>Test3");
2136 QUrl dataUrl("data:text/html,<h1>Test");
2154 QUrl dataUrl("data:text/html,<h1>Test");
2161 QUrl dataUrl2("data:text/html,<html><head><title>title</title></head><body><h1>Test</body></html>");
2172 m_view->setHtml("<html><body>");
2186 if (request.url() == QUrl("qrc:/test1.html")) {
2187 setHeader(QNetworkRequest::LocationHeader, QString("qrc:/test2.html"));
2188 setAttribute(QNetworkRequest::RedirectionTargetAttribute, QUrl("qrc:/test2.html"));
2191 else if (request.url() == QUrl("qrc:/fake-ssl-error.html"))
2216 if (request().url() == QUrl("qrc://test1.html"))
2221 else if (request().url() == QUrl("qrc:/fake-ssl-error.html"))
2241 if (url == "qrc:/test1.html" || url == "http://abcdef.abcdef/")
2244 else if (url == "qrc:/fake-ssl-error.html") {
2267 frame->setUrl(QUrl("qrc:/test1.html"));
2270 QCOMPARE(frame->requestedUrl(), QUrl("qrc:/test1.html"));
2271 QCOMPARE(frame->url(), QUrl("qrc:/test2.html"));
2273 frame->setUrl(QUrl("qrc:/non-existent.html"));
2276 QCOMPARE(frame->requestedUrl(), QUrl("qrc:/non-existent.html"));
2277 QCOMPARE(frame->url(), QUrl("qrc:/non-existent.html"));
2290 frame->setUrl(QUrl("qrc:/fake-ssl-error.html"));
2293 QCOMPARE(frame->requestedUrl(), QUrl("qrc:/fake-ssl-error.html"));
2294 QCOMPARE(frame->url(), QUrl("qrc:/fake-ssl-error.html"));
2300 QTest::addColumn<QString>("html");
2302 QTest::newRow("with <script>") << "<html><body><script></script><p>hello world</p></body></html>" << 1;
2303 QTest::newRow("without <script>") << "<html><body><p>hello world</p></body></html>" << 0;
2311 QFETCH(QString, html);
2312 frame->setHtml(html);
2323 frame->setHtml("<html></html>");
2334 QString html("<html><head></head><body><p>hello world</p></body></html>");
2335 m_view->page()->mainFrame()->setHtml(html);
2336 QCOMPARE(m_view->page()->mainFrame()->toHtml(), html);
2341 QString html("<html><body><p>hello world</p><img src='qrc:/image.png'/></body></html>");
2348 frame->setHtml(html);
2357 "<html>"
2364 "</html>";
2382 QString html("<html><body><p>hello world</p><img src='resources/image2.png'/></body></html>");
2390 frame->setHtml(html, QUrl::fromLocalFile(TESTS_SOURCE_DIR));
2413 redirectedRequest.setUrl(QUrl("data:text/html,<p>hello"));
2424 QUrl baseUrl = QUrl::fromEncoded("http://[::1]/index.html");
2436 m_view->setHtml("<html>"
2439 " <meta name=\"keywords\" content=\"HTML, JavaScript, Css\">"
2441 "</html>");
2448 QCOMPARE(metaData.value("keywords"), QString("HTML, JavaScript, Css"));
2451 m_view->setHtml("<html>"
2456 "</html>");
2474 view.setHtml("<html>"
2486 "</html>");
2517 QString html("<html><body><p>A paragraph</p><br/><br/><br/><a href=\"about:blank\" target=\"_foo\">link text</a></body></html>");
2521 frame->setHtml(html);
2614 QTest::addColumn<QString>("html");
2625 QString html = "<html>"
2629 "</html>";
2630 QTest::newRow("customBaseUrl") << html << QUrl("http://foobar.baz/")
2636 QFETCH(QString, html);
2641 m_page->mainFrame()->setHtml(html, loadUrl);
2648 QString html("<html><body><p>top</p>" \
2650 "</body></html>");
2653 m_page->mainFrame()->setHtml(html);
2660 QString innerHtml("<html><body><p>another iframe</p>" \
2662 "</body></html>");
2683 QString html("<html>" \
2688 "</html>");
2691 page.mainFrame()->setHtml(html);
2723 QString html("<html><body><img src='qrc:/image.png' height=500 width=500/></body></html>");
2729 frame->setHtml(html);
2747 QString html("<html><body>top<div id=\"junk\" style=\"display: block;\">"
2748 "junk</div>bottom</body></html>");
2749 view.setHtml(html);
2813 QUrl url = QUrl("qrc:///testiframe.html");