Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from chromium/more-web-feature-tests
Organize web feature tests and add a few more
- Loading branch information
Showing
5 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html> | ||
<head> | ||
<script> | ||
confirm("Test Alert"); | ||
</script> | ||
<title>Confirm Test</title> | ||
</head> | ||
<body> | ||
<p>This page tests how a web browser displays a URL in a Javascript | ||
confirm dialog.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html> | ||
<head> | ||
<script> | ||
prompt("Test Alert"); | ||
</script> | ||
<title>Prompt Test</title> | ||
</head> | ||
<body> | ||
<p>This page tests how a web browser displays a URL in a Javascript | ||
prompt dialog.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<html> | ||
<head> | ||
<script> | ||
// Redirect to https because permission prompts don't fire on http. | ||
if (window.location.protocol != "https:") { | ||
window.location.protocol = "https"; | ||
} | ||
</script> | ||
<title>WebBluetooth Test</title> | ||
</head> | ||
<body> | ||
<p>Click <a href="#" onclick="navigator.bluetooth.requestDevice({acceptAllDevices:true})">here</a> | ||
to trigger a WebBluetooth chooser.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<html> | ||
<head> | ||
<script> | ||
// Redirect to https because permission prompts don't fire on http. | ||
if (window.location.protocol != "https:") { | ||
window.location.protocol = "https"; | ||
} | ||
</script> | ||
<title>WebUSB Test</title> | ||
</head> | ||
<body> | ||
<p>Click <a href="#" onclick="navigator.usb.requestDevice({filters: [{}]})">here</a> | ||
to trigger a WebUSB chooser.</p> | ||
</body> | ||
</html> |