Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplifying test iframe layout.

  • Loading branch information...
commit c68136183361e432ca9d65c377c07b0f3746d206 1 parent d0ae857
@paulirish paulirish authored
Showing with 16 additions and 14 deletions.
  1. +11 −13 static/main.css
  2. +3 −0  static/robohornet.html
  3. +2 −1  static/robohornet.js
View
24 static/main.css
@@ -90,30 +90,28 @@ a {
}
#test-container {
- display: -webkit-box;
- -webkit-box-orient: horizontal;
- -webkit-box-direction: reverse;
margin: 0 auto;
width: 1050px;
-
- display: -webkit-flex;
- -webkit-flex-flow: row-reverse;
- -webkit-justify-content: center;
- -webkit-align-content: center;
- -webkit-align-items: flex-start;
-
}
-#tests-wrap, iframe {
- -webkit-box-flex: 1;
+#iframe-wrap {
+ height: 300px;
+ margin: 9px 23px 0 0;
+ overflow: hidden;
+ width: 300px;
+ display: inline-block;
+ vertical-align: top;
}
iframe {
height: 300px;
- margin: 9px 23px 0 0;
width: 300px;
}
+#tests-wrap {
+ display: inline-block;
+}
+
#tests > thead > tr > td {
border-bottom: 1px solid #454545;
}
View
3  static/robohornet.html
@@ -2,6 +2,7 @@
<html>
<head>
<title>RoboHornet</title>
+ <meta name="viewport" content="width=1024">
<script>
if (document.location.host.toLowerCase().indexOf('robohornet.com') != -1)
document.location.replace('http://www.robohornet.org');
@@ -39,6 +40,8 @@
<div id="tags-technology"><span>Technology: </span></div>
<div id="tags-app"><span>Affects: </span></div>
<div id="test-container">
+ <div id="iframe-wrap">
+ </div>
<div id="tests-wrap">
<table id="tests">
<thead>
View
3  static/robohornet.js
@@ -348,7 +348,7 @@ robohornet.Runner = function(data) {
// create fresh test environment iframe
var iframe = document.createElement('iframe');
- document.getElementById('test-container').appendChild(iframe);
+ document.getElementById('iframe-wrap').appendChild(iframe);
iframe.src = benchmark.filename + '?use_test_runner';
this.benchmarkWindow_ = iframe.contentWindow;
@@ -398,6 +398,7 @@ robohornet.Runner = function(data) {
}
_p.clearTestIframes_();
+
this.benchmarkWindow_ = null;
var results = [];
Please sign in to comment.
Something went wrong with that request. Please try again.