Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to match the current api and test page

  • Loading branch information...
commit b881251a7a1a60a7b9873ae14fcb8be9c2388597 1 parent 13f35d6
Benjamin C Meyer authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 llmozlib2/tests/qttestapp/main.cpp
View
11 llmozlib2/tests/qttestapp/main.cpp
@@ -91,10 +91,11 @@ WebPage::WebPage(QWidget *parent)
LLMozLib::getInstance()->setBrowserAgentId("testqtapp");
// don't flip bitmap
- LLMozLib::getInstance()->flipWindow( mBrowserWindowId, true );
+ LLMozLib::getInstance()->flipWindow(mBrowserWindowId, false);
// go to the "home page"
- LLMozLib::getInstance()->navigateTo( mBrowserWindowId, "http://www.google.com" );
+ QString url = QUrl::fromLocalFile(QDir::currentPath() + "/../testgl/testpage.html").toString();
+ LLMozLib::getInstance()->navigateTo(mBrowserWindowId, url.toStdString());
}
WebPage::~WebPage()
@@ -201,17 +202,17 @@ void WebPage::keyReleaseEvent(QKeyEvent *event)
void WebPage::goBack()
{
- LLMozLib::getInstance()->navigateBack(mBrowserWindowId);
+ LLMozLib::getInstance()->userAction(mBrowserWindowId, LLMozLib::UA_NAVIGATE_BACK);
}
void WebPage::goForward()
{
- LLMozLib::getInstance()->navigateForward(mBrowserWindowId);
+ LLMozLib::getInstance()->userAction(mBrowserWindowId, LLMozLib::UA_NAVIGATE_FORWARD);
}
void WebPage::reload()
{
- LLMozLib::getInstance()->navigateReload(mBrowserWindowId);
+ LLMozLib::getInstance()->userAction(mBrowserWindowId, LLMozLib::UA_NAVIGATE_RELOAD);
}
void WebPage::loadUrl(const QString &url)
Please sign in to comment.
Something went wrong with that request. Please try again.