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:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-09 21:22:16 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-09 21:22:16 +0400
commit34f48f693be7b4c7cda5ce429a7259bd59b3f741 (patch)
tree3853573ee5dfe269de685858845df02fb19a6c0b /tests/javascript
parent36b6aed37941afef152bac49d6d4db0f86dcec70 (diff)
refs #4996 more bugfixes, more work on cross browser, added possibility to track content via php tracker (not tested yet)
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/index.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 698ce3fec5..418150fc94 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -61,6 +61,14 @@ testTrackPageViewAsync();
height: 1px;
width: 1px;
}
+ .hideY {
+ overflow-x: hidden !important;
+ }
+ .ie #contenttest {
+ position: relative;
+ margin-left: 8px;
+ margin-right: 8px;
+ }
</style>
<script src="../../libs/jquery/jquery.js" type="text/javascript"></script>
<script src="assets/qunit.js" type="text/javascript"></script>
@@ -75,6 +83,10 @@ function _e(id){
if (document.all)
return document.all[id];
}
+ function isIE () {
+ var myNav = navigator.userAgent.toLowerCase();
+ return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
+ }
function _s(selector) { // select node within content test scope
$nodes = $('#contenttest ' + selector);
@@ -287,6 +299,19 @@ function setupContentTrackingFixture(name, targetNode) {
<div id="main" style="display:none;"></div>
<script>
+
+ if (isIE) {
+ (function () {
+ // otherwise because of position:absolute some nodes will be visible but should not... it will show scroll bars in IE
+ function fixWidthNode(tagName){
+ var node = document.getElementsByTagName(tagName)[0];
+ node.className = node.className + ' hideY ie';
+ }
+ fixWidthNode('html');
+ fixWidthNode('body');
+ })();
+ }
+
var hasLoaded = false;
function PiwikTest() {
hasLoaded = true;