Reviewed by Alexey.
[WebKit-https.git] / LayoutTests / fast / events / iframe-object-onload.html
index 5670fa838b257331decd87abb1b31ca4ae95ad16..3d6544222a4c138866d62b1eace2689d5773c7a1 100644 (file)
@@ -13,16 +13,26 @@ if (window.layoutTestController)
 
 function log(s)
 {
-    document.getElementById("console").innerHTML += s + "<br>";
+    currentLogEntry += s + "<br>";    
 }
 
 var innerEvent = null;
+var logArray = [];
+var currentLogEntry = '';
 
 function logOuter(msg, event)
 {
     log(msg);
     log('Outer event same as inner: ' + (innerEvent == event));
     log('------');
+
+    logArray.push(currentLogEntry);
+    currentLogEntry = '';
+    
+    if (logArray.length == 6) {
+        logArray.sort();
+        document.getElementById("console").innerHTML = logArray.join('');
+    }
 }
 
 function logInner(tag, event)