Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: third_party/WebKit/LayoutTests/bug574272/test.html

Issue 2066403002: Step 5 for debugging crbug.com/574272 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/bug574272/test.html
diff --git a/third_party/WebKit/LayoutTests/bug574272/test.html b/third_party/WebKit/LayoutTests/bug574272/test.html
index 4209d291638d2e37c0c86619972c4a1f22fa09ab..ac2dab91bb3e1d829dabaecd1e51bcef5536a790 100644
--- a/third_party/WebKit/LayoutTests/bug574272/test.html
+++ b/third_party/WebKit/LayoutTests/bug574272/test.html
@@ -1,9 +1,20 @@
<script>
onload = function() {
- if (navigator.platform.indexOf('Linux') != -1)
- document.body.appendChild(document.createTextNode('Linux'));
- else if (navigator.platform.indexOf('Win') != -1)
- document.body.appendChild(document.createTextNode('Windows'));
+ var ua = navigator.userAgent;
+ var textToAppend;
+ if (ua.indexOf('Linux') != -1) {
+ textToAppend = 'Linux';
+ } else if (ua.indexOf('Win') != -1) {
+ textToAppend = 'Windows';
+ // Make result on win7 special.
+ if (ua.indexOf('NT 6.0') != -1 || ua.indexOf('NT 6.1') != -1)
+ textToAppend = ' Vista or 7';
+ } else if (ua.indexOf('Mac OS X 10_11') != -1) {
+ // Make result on Mac 10.11 (the default fallback on mac) special.
+ textToAppend = 'Mac 10.11';
+ }
+ if (textToAppend)
+ document.body.appendChild(document.createTextNode(textToAppend));
};
if (window.testRunner)
testRunner.dumpAsText();
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698