Skip to content

Commit

Permalink
Fixes #6 - visibility: hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Sep 11, 2013
1 parent ad1806d commit 9df808a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/assets/javascripts/application.js
Expand Up @@ -42,7 +42,8 @@ $(function() {
$("<td>").text(testcase.id).appendTo(tr);
$("<td>").text(testcase.title).appendTo(tr);
$("<td>").appendTo(tr).append($("<button>").addClass("btn btn-small").text("Run").click(function(){
$("<iframe>").attr("src", testcase.load_uri + "&_=" + (new Date()).getTime()).appendTo($(".iframes")).hide();
$("<iframe>").attr("src", testcase.load_uri + "&_=" + (new Date()).getTime()).appendTo($(".iframes"))
.css({"visibility":"hidden"});
setTimeout(function() { loadResults(true, false) }, 1000);
setTimeout(function() { loadResults(true, true) }, 5000);
setTimeout(function() { loadResults(false, true) }, 15000);
Expand All @@ -62,7 +63,8 @@ $(function() {
var tr = $("<tr>").attr("id", "id-" + testcase.id).appendTo($(".results")).addClass("testcase");
$("<td>").text(testcase.id).appendTo(tr);
$("<td>").text(testcase.title).appendTo(tr);
$("<iframe>").attr("src", testcase.load_uri + "&_=" + (new Date()).getTime()).appendTo($(".iframes")).hide();
$("<iframe>").attr("src", testcase.load_uri + "&_=" + (new Date()).getTime()).appendTo($(".iframes"))
.css({"visibility":"hidden"});
setTimeout(function() { runTest(++id) }, 100);
if (id > 0 && (id % 10 == 0)) loadResults(true);
} else {
Expand Down
11 changes: 10 additions & 1 deletion app/assets/stylesheets/application.css
Expand Up @@ -5848,4 +5848,13 @@ button.close {
height: auto !important;
overflow: visible !important;
}
}
}



.iframes {
height: 1px;
width: 1px;
overflow: hidden;
}

2 changes: 1 addition & 1 deletion app/views/home/index.html.erb
Expand Up @@ -19,6 +19,6 @@ var testcases = <%= raw @testcase_json %>
</tr>
</table>

<div class="iframes" style="display: none">
<div class="iframes" style="visibility: hidden">
<iframe src="//<%= @other_host %>/home/establish?session_id=<%= @session_id %>"></iframe>
</div>

0 comments on commit 9df808a

Please sign in to comment.