Merge pull request #4563 from bthorben/testWithOpera

Test with opera
This commit is contained in:
Yury Delendik 2014-04-04 09:03:20 -05:00
commit cbf35cae0f
2 changed files with 1 additions and 2 deletions

View File

@ -149,7 +149,7 @@ WebBrowser.create = function (desc) {
if (/firefox/i.test(name)) { if (/firefox/i.test(name)) {
return new FirefoxBrowser(desc.name, desc.path); return new FirefoxBrowser(desc.name, desc.path);
} }
if (/(chrome|chromium)/i.test(name)) { if (/(chrome|chromium|opera)/i.test(name)) {
return new ChromiumBrowser(desc.name, desc.path); return new ChromiumBrowser(desc.name, desc.path);
} }
return new WebBrowser(desc.name, desc.path); return new WebBrowser(desc.name, desc.path);

View File

@ -161,7 +161,6 @@ WebServer.prototype = {
res.setHeader('Content-Type', 'text/html'); res.setHeader('Content-Type', 'text/html');
res.writeHead(200); res.writeHead(200);
var content = '';
if (queryPart === 'frame') { if (queryPart === 'frame') {
res.end('<html><frameset cols=*,200><frame name=pdf>' + res.end('<html><frameset cols=*,200><frame name=pdf>' +
'<frame src=\"' + encodeURI(pathPart) + '<frame src=\"' + encodeURI(pathPart) +