diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-02 14:41:20 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-02 14:41:20 +0400 |
commit | 5c66663d11aec26579b7c66928695f03ddb11dff (patch) | |
tree | ea1e607732529035181e5c2a543e062a8a7c7c8e /tests/resources/overlay-test-site/index.html | |
parent | 8a525ad008a5235744de7f6c922516a36d45c314 (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/index.html')
-rw-r--r-- | tests/resources/overlay-test-site/index.html | 88 |
1 files changed, 88 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 |