| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 onload = function() { | 2 onload = function() { |
| 3 if (navigator.platform.indexOf('Linux') != -1) | 3 var ua = navigator.userAgent; |
| 4 document.body.appendChild(document.createTextNode('Linux')); | 4 var textToAppend; |
| 5 else if (navigator.platform.indexOf('Win') != -1) | 5 if (ua.indexOf('Linux') != -1) { |
| 6 document.body.appendChild(document.createTextNode('Windows')); | 6 textToAppend = 'Linux'; |
| 7 } else if (ua.indexOf('Win') != -1) { |
| 8 textToAppend = 'Windows'; |
| 9 // Make result on win7 special. |
| 10 if (ua.indexOf('NT 6.0') != -1 || ua.indexOf('NT 6.1') != -1) |
| 11 textToAppend = ' Vista or 7'; |
| 12 } else if (ua.indexOf('Mac OS X 10_11') != -1) { |
| 13 // Make result on Mac 10.11 (the default fallback on mac) special. |
| 14 textToAppend = 'Mac 10.11'; |
| 15 } |
| 16 if (textToAppend) |
| 17 document.body.appendChild(document.createTextNode(textToAppend)); |
| 7 }; | 18 }; |
| 8 if (window.testRunner) | 19 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
| 10 </script> | 21 </script> |
| 11 Common new result | 22 Common new result |
| OLD | NEW |