diff --git a/test/assets/detect-touch.html b/test/assets/detect-touch.html
new file mode 100644
index 00000000000..96123b2441d
--- /dev/null
+++ b/test/assets/detect-touch.html
@@ -0,0 +1,16 @@
+
+
+
+ Detect Touch Test
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/test.js b/test/test.js
index 635081ddeb4..fb3831de767 100644
--- a/test/test.js
+++ b/test/test.js
@@ -1429,6 +1429,13 @@ describe('Page', function() {
return promise;
}
}));
+ it('should be detectable by Modernizr', SX(async function(){
+ await page.goto(PREFIX + '/detect-touch.html');
+ expect(await page.evaluate(() => document.body.textContent.trim())).toBe('NO');
+ await page.setViewport(iPhone.viewport);
+ await page.goto(PREFIX + '/detect-touch.html');
+ expect(await page.evaluate(() => document.body.textContent.trim())).toBe('YES');
+ }));
it('should support landscape emulation', SX(async function() {
await page.goto(PREFIX + '/mobile.html');
expect(await page.evaluate(() => screen.orientation.type)).toBe('portrait-primary');