Update expectations for popupwindows test

remotes/origin/falkon
David Rosca 11 years ago
parent fcaa2b4559
commit 2582ee3562
  1. 4
      src/lib/webengine/webpage.cpp
  2. 4
      tests/popupwindows.html

@ -964,7 +964,9 @@ QWebEnginePage* WebPage::createWindow(QWebEnginePage::WebWindowType type)
BrowserWindow *window = tView ? tView->browserWindow() : mApp->getWindow();
switch (type) {
case QWebEnginePage::WebBrowserWindow: // TODO
case QWebEnginePage::WebBrowserWindow:
// TODO: Investigate when this is called from html
qDebug() << "WebBrowserWindow";
case QWebEnginePage::WebBrowserTab: {
int index = window->tabWidget()->addView(QUrl(), Qz::NT_CleanSelectedTab);
TabbedWebView* view = window->weView(index);

@ -18,11 +18,11 @@
<a href="javascript:window.open('popup.html', '_blank')">Popup 2</a>
- with second argument _blank
</p>
<b>Will be opened in popup window</b>
<p>
<a href="javascript:window.open('popup.html', '_blank', 'left=100,right=200')">Popup 3</a>
- with left and righ (should be opened as popup, but how to detect it?)
- with left and righ
</p>
<b>Will be opened in popup window</b>
<p>
<a href="javascript:window.open('popup.html', '_blank', 'width=150,height=150')">Popup 4</a>
- with width and height

Loading…
Cancel
Save