Follow the master in lanthan
This commit is contained in:
		
							parent
							
								
									dbbd6d704e
								
							
						
					
					
						commit
						9fe09eba97
					
				
					 6 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -20,7 +20,7 @@ const newApp = () => {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
describe("zoom test", () => {
 | 
					describe("console test", () => {
 | 
				
			||||||
  const port = 12321;
 | 
					  const port = 12321;
 | 
				
			||||||
  let http;
 | 
					  let http;
 | 
				
			||||||
  let firefox;
 | 
					  let firefox;
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,7 @@ describe("zoom test", () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  before(async() => {
 | 
					  before(async() => {
 | 
				
			||||||
    firefox = await lanthan.firefox();
 | 
					    firefox = await lanthan.firefox();
 | 
				
			||||||
    await firefox.session.installAddon(path.join(__dirname, '..'));
 | 
					    await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
 | 
				
			||||||
    session = firefox.session;
 | 
					    session = firefox.session;
 | 
				
			||||||
    browser = firefox.browser;
 | 
					    browser = firefox.browser;
 | 
				
			||||||
    http = newApp().listen(port);
 | 
					    http = newApp().listen(port);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,7 +29,7 @@ describe("mark test", () => {
 | 
				
			||||||
    http = newApp().listen(port);
 | 
					    http = newApp().listen(port);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    firefox = await lanthan.firefox();
 | 
					    firefox = await lanthan.firefox();
 | 
				
			||||||
    await firefox.session.installAddon(path.join(__dirname, '..'));
 | 
					    await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
 | 
				
			||||||
    session = firefox.session;
 | 
					    session = firefox.session;
 | 
				
			||||||
    browser = firefox.browser;
 | 
					    browser = firefox.browser;
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,7 +43,7 @@ const newApp = () => {
 | 
				
			||||||
  return app;
 | 
					  return app;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
describe("zoom test", () => {
 | 
					describe("navigate test", () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const port = 12321;
 | 
					  const port = 12321;
 | 
				
			||||||
  let http;
 | 
					  let http;
 | 
				
			||||||
| 
						 | 
					@ -59,7 +59,7 @@ describe("zoom test", () => {
 | 
				
			||||||
        'browser.startup.homepage': `http://127.0.0.1:${port}#home`,
 | 
					        'browser.startup.homepage': `http://127.0.0.1:${port}#home`,
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    await firefox.session.installAddon(path.join(__dirname, '..'));
 | 
					    await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
 | 
				
			||||||
    session = firefox.session;
 | 
					    session = firefox.session;
 | 
				
			||||||
    browser = firefox.browser;
 | 
					    browser = firefox.browser;
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ describe("scroll test", () => {
 | 
				
			||||||
    http = newApp().listen(port);
 | 
					    http = newApp().listen(port);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    firefox = await lanthan.firefox();
 | 
					    firefox = await lanthan.firefox();
 | 
				
			||||||
    await firefox.session.installAddon(path.join(__dirname, '..'));
 | 
					    await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
 | 
				
			||||||
    session = firefox.session;
 | 
					    session = firefox.session;
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ describe("tab test", () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  before(async() => {
 | 
					  before(async() => {
 | 
				
			||||||
    firefox = await lanthan.firefox();
 | 
					    firefox = await lanthan.firefox();
 | 
				
			||||||
    await firefox.session.installAddon(path.join(__dirname, '..'));
 | 
					    await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
 | 
				
			||||||
    session = firefox.session;
 | 
					    session = firefox.session;
 | 
				
			||||||
    browser = firefox.browser;
 | 
					    browser = firefox.browser;
 | 
				
			||||||
    http = newApp().listen(port);
 | 
					    http = newApp().listen(port);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@ describe("zoom test", () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  before(async() => {
 | 
					  before(async() => {
 | 
				
			||||||
    firefox = await lanthan.firefox();
 | 
					    firefox = await lanthan.firefox();
 | 
				
			||||||
    await firefox.session.installAddon(path.join(__dirname, '..'));
 | 
					    await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
 | 
				
			||||||
    session = firefox.session;
 | 
					    session = firefox.session;
 | 
				
			||||||
    browser = firefox.browser;
 | 
					    browser = firefox.browser;
 | 
				
			||||||
    tab = (await browser.tabs.query({}))[0]
 | 
					    tab = (await browser.tabs.query({}))[0]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue