Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-02 14:41:20 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-02 14:41:20 +0400
commit5c66663d11aec26579b7c66928695f03ddb11dff (patch)
treeea1e607732529035181e5c2a543e062a8a7c7c8e /tests/resources/overlay-test-site
parent8a525ad008a5235744de7f6c922516a36d45c314 (diff)
Refs #4189, adding Overlay screenshot tests:
- Make 'idsite' parameter in certain Overlay URLs 'idSite'. - Make sure Overlay sidebar has width so screenshot test framework can find position. - Add overlay test site so Overlay can be loaded in phantomjs. - Remove createSuperUser call from TrackerTest (done in Fixture setUp). - Make sure piwik.js link is created for screenshot tests & make sure the test environment JSON file is loaded after the database is setup. - Modify logic that waits for images to load in screenshot testing framework's page renderer to wait for CSS image URLs.
Diffstat (limited to 'tests/resources/overlay-test-site')
-rw-r--r--tests/resources/overlay-test-site/index.html88
-rw-r--r--tests/resources/overlay-test-site/page-1.html88
-rw-r--r--tests/resources/overlay-test-site/page-2.html88
-rw-r--r--tests/resources/overlay-test-site/page-3.html88
-rw-r--r--tests/resources/overlay-test-site/page-4.html88
-rw-r--r--tests/resources/overlay-test-site/page-5.html88
-rw-r--r--tests/resources/overlay-test-site/page-6.html88
7 files changed, 616 insertions, 0 deletions
diff --git a/tests/resources/overlay-test-site/index.html b/tests/resources/overlay-test-site/index.html
new file mode 100644
index 0000000000..4980998855
--- /dev/null
+++ b/tests/resources/overlay-test-site/index.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Navbar example</h1>
+ <p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
+ <p>
+ <a class="btn btn-lg btn-primary" href="page-3.html" role="button">Big Button.</a>
+ </p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/resources/overlay-test-site/page-1.html b/tests/resources/overlay-test-site/page-1.html
new file mode 100644
index 0000000000..322d053d67
--- /dev/null
+++ b/tests/resources/overlay-test-site/page-1.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Page 1</h1>
+
+ <p>Anim keffiyeh Odd Future, est hella PBR&B normcore dolor cupidatat pug American Apparel. Wes Anderson freegan aesthetic High Life, iPhone biodiesel artisan enim velit Etsy yr paleo tempor. Brunch dolore Portland excepteur, banh mi vegan tote bag quinoa irure polaroid. Ea eu pop-up laboris assumenda incididunt chillwave, <a href="page-4.html">nihil Truffaut</a> McSweeney's nostrud swag literally. Bushwick tempor Intelligentsia, drinking vinegar next level jean shorts Neutra brunch organic fingerstache sint. Kale chips try-hard organic pariatur, whatever meh Vice incididunt street art fingerstache forage dreamcatcher artisan. Cupidatat laborum accusamus Etsy, pug consequat meh.</p>
+
+ <p>Laborum Pitchfork bicycle rights, butcher 90's 3 wolf moon church-key shabby chic. Accusamus Godard cray ullamco lomo, deserunt selvage art party. Non Blue Bottle banh mi, bitters keffiyeh irure velit biodiesel tattooed. Fingerstache salvia leggings kitsch aesthetic umami. Sustainable dreamcatcher whatever trust fund, flannel <a href="page-2.html">aliquip artisan XOXO</a> deserunt fingerstache commodo tattooed. Enim brunch pop-up YOLO. Non Marfa Williamsburg sint blog, DIY photo booth mustache forage.</p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/resources/overlay-test-site/page-2.html b/tests/resources/overlay-test-site/page-2.html
new file mode 100644
index 0000000000..1e10200b06
--- /dev/null
+++ b/tests/resources/overlay-test-site/page-2.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Page 2</h1>
+
+ <p>Velit before they sold out post-ironic officia, sint yr consequat Cosby sweater YOLO you probably haven't heard of them Bushwick. Esse cillum polaroid literally, retro food truck kale chips nulla in. <a href="page-3.html">Disrupt single-origin</a> coffee duis Schlitz twee cornhole. Elit selfies cliche yr exercitation, iPhone duis ennui. Ennui biodiesel brunch distillery flexitarian, ugh aliquip mixtape ea shabby chic. Stumptown cornhole Cosby sweater cred. Fanny pack laboris bitters, bicycle rights meh swag Marfa roof party.</p>
+
+ <p>Nisi quis sartorial, Tonx Intelligentsia direct trade actually next level consectetur <a href="page-2.html">raw denim</a> pickled whatever eiusmod id occupy. In +1 Bushwick, aesthetic qui vinyl sustainable selfies chillwave chia sunt. Pickled gluten-free sustainable slow-carb High Life adipisicing banh mi, tofu kitsch polaroid quinoa sed ad four loko leggings. Ennui polaroid stumptown tote bag, selvage dolore fugiat whatever odio chillwave. Hella sed blog vegan. Irony tofu sustainable mlkshk wayfarers, skateboard pariatur. Deserunt laborum consectetur gastropub High Life, Neutra narwhal veniam cillum lo-fi magna ut nostrud craft beer nihil.</p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/resources/overlay-test-site/page-3.html b/tests/resources/overlay-test-site/page-3.html
new file mode 100644
index 0000000000..9993d4f766
--- /dev/null
+++ b/tests/resources/overlay-test-site/page-3.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Page 3</h1>
+
+ <p>Velit before they sold out post-ironic officia, sint yr consequat Cosby sweater YOLO you probably haven't heard of them Bushwick. Esse cillum polaroid literally, retro food truck kale chips nulla in. Disrupt single-origin coffee duis Schlitz twee cornhole. Elit selfies cliche yr exercitation, iPhone duis ennui. Ennui biodiesel brunch distillery flexitarian, ugh aliquip mixtape ea shabby chic. Stumptown cornhole Cosby sweater cred. Fanny pack laboris bitters, bicycle rights meh swag Marfa roof party.</p>
+
+ <p>Nisi quis sartorial, Tonx Intelligentsia direct trade actually next level consectetur raw denim pickled whatever eiusmod id occupy. In +1 Bushwick, aesthetic qui vinyl <a href="page-1.html">sustainable selfies</a> chillwave chia sunt. Pickled gluten-free sustainable slow-carb High Life adipisicing banh mi, tofu kitsch polaroid quinoa sed ad four loko leggings. <a href="page-2.html">Ennui polaroid stumptown</a> tote bag, selvage dolore fugiat whatever odio chillwave. Hella sed blog vegan. Irony tofu sustainable mlkshk wayfarers, skateboard pariatur. Deserunt laborum consectetur gastropub High Life, Neutra narwhal veniam cillum lo-fi magna ut nostrud craft beer nihil.</p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/resources/overlay-test-site/page-4.html b/tests/resources/overlay-test-site/page-4.html
new file mode 100644
index 0000000000..5ad7ff13cc
--- /dev/null
+++ b/tests/resources/overlay-test-site/page-4.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Page 4</h1>
+
+ <p>Velit before they sold out post-ironic officia, <a href="page-1.html">sint yr consequat</a> Cosby sweater YOLO you probably haven't heard of them Bushwick. Esse cillum polaroid literally, retro food truck kale chips nulla in. Disrupt single-origin coffee duis Schlitz twee cornhole. Elit selfies cliche yr exercitation, iPhone duis ennui. Ennui biodiesel brunch distillery flexitarian, ugh aliquip mixtape ea shabby chic. Stumptown cornhole Cosby sweater cred. Fanny pack laboris bitters, bicycle rights meh swag Marfa roof party.</p>
+
+ <p>Nisi quis sartorial, Tonx Intelligentsia direct trade actually next level consectetur raw denim pickled whatever eiusmod id occupy. In +1 Bushwick, aesthetic qui vinyl sustainable selfies chillwave chia sunt. Pickled gluten-free sustainable slow-carb High Life adipisicing banh mi, tofu kitsch polaroid quinoa sed ad four loko leggings. Ennui <a href="page-6.html">polaroid stumptown</a> tote bag, selvage dolore fugiat whatever odio chillwave. Hella sed blog vegan. Irony tofu sustainable mlkshk wayfarers, skateboard pariatur. Deserunt laborum consectetur gastropub High Life, Neutra narwhal veniam cillum lo-fi magna ut nostrud craft beer nihil.</p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/resources/overlay-test-site/page-5.html b/tests/resources/overlay-test-site/page-5.html
new file mode 100644
index 0000000000..9183af04f8
--- /dev/null
+++ b/tests/resources/overlay-test-site/page-5.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Page 5</h1>
+
+ <p>Velit before they sold out post-ironic officia, sint yr consequat Cosby sweater YOLO you probably haven't heard of them Bushwick. Esse cillum polaroid literally, retro food truck kale chips nulla in. Disrupt single-origin coffee duis Schlitz twee cornhole. Elit selfies cliche yr exercitation, iPhone duis ennui. Ennui biodiesel brunch distillery flexitarian, ugh aliquip mixtape ea shabby chic. Stumptown cornhole Cosby sweater cred. Fanny pack laboris bitters, <a href="page-4.html">bicycle rights meh</a> swag Marfa roof party.</p>
+
+ <p>Nisi quis sartorial, Tonx Intelligentsia direct trade actually next level consectetur raw denim pickled whatever eiusmod id occupy. In +1 Bushwick, aesthetic qui vinyl sustainable selfies chillwave chia sunt. Pickled gluten-free sustainable slow-carb High Life adipisicing banh mi, tofu kitsch polaroid quinoa sed ad four loko leggings. Ennui polaroid stumptown tote bag, <a href="page-3.html">selvage dolore</a> fugiat whatever odio chillwave. Hella sed blog vegan. Irony tofu sustainable mlkshk wayfarers, skateboard pariatur. Deserunt laborum consectetur gastropub High Life, Neutra narwhal veniam cillum lo-fi magna ut nostrud craft beer nihil.</p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/resources/overlay-test-site/page-6.html b/tests/resources/overlay-test-site/page-6.html
new file mode 100644
index 0000000000..f971e272d5
--- /dev/null
+++ b/tests/resources/overlay-test-site/page-6.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Bootstrap 101 Template</title>
+
+ <!-- Bootstrap -->
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="">Project name</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="page-1.html">Page 1</a></li>
+ <li><a href="page-2.html">Page 2</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="page-3.html">Page 3</a></li>
+ <li><a href="page-4.html">Page 4</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="page-5.html">Page 5</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="active"><a href="./">Default</a></li>
+ <li><a href="page-6.html">Page 6</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div><!--/.container-fluid -->
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Page 6</h1>
+
+ <p>Velit before they sold out post-ironic officia, sint yr consequat Cosby sweater YOLO you probably haven't heard of them Bushwick. Esse cillum polaroid literally, retro food truck kale chips nulla in. Disrupt single-origin coffee duis Schlitz twee cornhole. Elit selfies cliche yr exercitation, iPhone duis ennui. Ennui biodiesel brunch distillery flexitarian, ugh aliquip mixtape ea shabby chic. Stumptown cornhole Cosby sweater cred. Fanny pack laboris bitters, bicycle rights meh swag Marfa roof party.</p>
+
+ <p>Nisi quis sartorial, Tonx Intelligentsia direct trade actually next level consectetur raw denim pickled whatever eiusmod id occupy. In +1 Bushwick, aesthetic qui <a href="page-2.html">vinyl</a> sustainable selfies chillwave chia sunt. Pickled gluten-free sustainable slow-carb High Life adipisicing banh mi, tofu kitsch polaroid quinoa sed ad four loko leggings. Ennui polaroid stumptown tote bag, selvage dolore fugiat whatever odio chillwave. Hella sed blog vegan. Irony tofu sustainable mlkshk wayfarers, skateboard pariatur. Deserunt laborum consectetur gastropub High Life, Neutra narwhal veniam cillum lo-fi magna ut nostrud craft beer nihil.</p>
+ </div>
+
+ </div> <!-- /container -->
+
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script>
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%");
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+ piwikTracker.setCookieDomain('*.piwik.org');
+
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script>
+ </body>
+</html> \ No newline at end of file