Changeset 280610 in webkit
- Timestamp:
- Aug 3, 2021, 1:29:28 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 deleted
- 2 edited
-
ChangeLog (modified) (1 diff)
-
fast/dom/navigator-iOS-userAgent.html (modified) (2 diffs)
-
platform/ipad/fast/dom/navigator-iOS-userAgent-expected.txt (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280608 r280610 1 2021-08-03 Tim Horton <timothy_horton@apple.com> 2 3 fast/dom/navigator-iOS-userAgent.html fails on iPad because the platform is not "iPhone" or "iPad" 4 https://bugs.webkit.org/show_bug.cgi?id=228750 5 6 Reviewed by Dean Jackson. 7 8 * fast/dom/navigator-iOS-userAgent.html: 9 * platform/ipad/fast/dom/navigator-iOS-userAgent-expected.txt: Removed. 10 This test fails on iPad in the default configuration because navigator.platform is MacIntel 11 due to desktop-class browsing. To maintain previous behavior of the test, revert to mobile mode. 12 This lets us delete the iPad-specific results. 13 Also, fix a typo in the variable names. 14 1 15 2021-08-03 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/LayoutTests/fast/dom/navigator-iOS-userAgent.html
r188132 r280610 1 <html> 1 <html><!-- webkit-test-runner [ contentMode=mobile ] --> 2 2 <head> 3 3 <script src="../../resources/js-test-pre.js"></script> … … 10 10 11 11 var userAgent = navigator.userAgent; 12 var isIPadUserAgent = userAgent.indexOf("Mozilla/5.0 (iP hone;") == 0;13 var isIPhoneUserAgent = userAgent.indexOf("Mozilla/5.0 (iP ad;") == 0;12 var isIPadUserAgent = userAgent.indexOf("Mozilla/5.0 (iPad;") == 0; 13 var isIPhoneUserAgent = userAgent.indexOf("Mozilla/5.0 (iPhone;") == 0; 14 14 15 15 function test(str, condition) {
Note:
See TracChangeset
for help on using the changeset viewer.