diff options
| author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-10-09 11:50:52 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-09 11:50:52 +0000 | 
| commit | 18c72bf15c6bc7e4c88dd06d38ff861f29d66b1b (patch) | |
| tree | f46720349e17c57db7bbfc55241b12c4410f2773 /e2e/follow.test.ts | |
| parent | 8eddcc1785a85bbe74be254d1055ebe5125dad10 (diff) | |
| parent | 68f6211aac4177f3a70a40031dabbd1b61840071 (diff) | |
Merge pull request #655 from ueokande/partial-blacklist
Partial blacklist
Diffstat (limited to 'e2e/follow.test.ts')
| -rw-r--r-- | e2e/follow.test.ts | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/e2e/follow.test.ts b/e2e/follow.test.ts index fd741ef..ce3f565 100644 --- a/e2e/follow.test.ts +++ b/e2e/follow.test.ts @@ -14,13 +14,13 @@ const newApp = () => {      <!DOCTYPE html>      <html lang="en"><body>        <a href="hello">hello</a> -    </body></html">`); +    </body></html>`);    server.receiveContent('/follow-input', `      <!DOCTYPE html>      <html lang="en"><body>        <input> -    </body></html">`); +    </body></html>`);    server.receiveContent('/area', `      <!DOCTYPE html> @@ -34,8 +34,8 @@ const newApp = () => {          <area shape="rect" coords="64,64,64,64" href="/">          <area shape="rect" coords="128,128,64,64" href="/">        </map> -    </body></html">`); -   +    </body></html>`); +    /*     * test case: link2 is out of the viewport     * +-----------------+ @@ -52,7 +52,7 @@ const newApp = () => {        <div><a href="link1">link1</a></div>        <div style="min-height:3000px"></div>        <div><a href="link2">link2</a></div> -    </body></html">`); +    </body></html>`);  /*   * test case 2: link2 and link3 are out of window of the frame @@ -69,14 +69,14 @@ const newApp = () => {      <!DOCTYPE html>      <html lang="en"><body>        <iframe height="5000" src='/test2-frame'> -    </body></html">`); +    </body></html>`);    server.receiveContent('/test2-frame', `      <!DOCTYPE html>      <html lang="en"><body>        <div><a href="link1">link1</a></div>        <div style="min-height:3000px"></div>        <div><a href="link2">link2</a></div> -    </body></html">`); +    </body></html>`);  /* test case 3: link2 is out of window of the frame   * +-----------------+ @@ -92,14 +92,14 @@ const newApp = () => {      <!DOCTYPE html>      <html lang="en"><body>        <iframe src='/test3-frame'> -    </body></html">`); +    </body></html>`);    server.receiveContent('/test3-frame', `      <!DOCTYPE html>      <html lang="en"><body>        <div><a href="link1">link1</a></div>        <div style="min-height:3000px"></div>        <div><a href="link2">link2</a></div> -    </body></html">`); +    </body></html>`);    return server;  }; | 
