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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/volume_nonfinite.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <meta charset="utf-8">
3 <title>Setting HTMLMediaElement.volume to non-finite numbers</title>
4 <script src="../../../../../../resources/testharness.js"></script>
5 <script src="../../../../../../resources/testharnessreport.js"></script>
6 <div id=log></div>
7 <script>
8 ["audio", "video"].forEach(function(aElement) {
9 [NaN, Infinity, -Infinity].forEach(function(aValue) {
10 test(function() {
11 var el = document.createElement(aElement);
12 assert_throws(new TypeError(), function() {
13 el.volume = aValue;
14 });
15 }, "Setting " + aElement + ".volume to " + String(aValue) + " should throw a TypeError");
16 });
17 });
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698