Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / webaudio / dom-exceptions.html
index 60b0608..f7833b6 100644 (file)
@@ -1,9 +1,8 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
-<link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
 <script src="resources/audio-testing.js"></script>
-<script src="../fast/js/resources/js-test-pre.js"></script>
+<script src="../resources/js-test.js"></script>
 <script src="resources/biquad-testing.js"></script>
 </head>
 
@@ -146,7 +145,6 @@ function runTest() {
     shouldNotThrow("source.buffer = buffer");
     shouldNotThrow("source.start()");
     shouldNotThrow("source.stop()");
-    shouldThrow("source.stop()");
 
     
     // Start/stop for OscillatorNodes
@@ -159,8 +157,12 @@ function runTest() {
     shouldNotThrow("osc1 = context.createOscillator()");
     shouldNotThrow("osc1.start()");
     shouldNotThrow("osc1.stop()");
-    shouldThrow("osc1.stop()");
 
+    // exponentialRampToValue should throw on non-positive target values.
+    node = context.createGain();
+    node.connect(context.destination);
+    shouldThrow("node.gain.exponentialRampToValueAtTime(-1, 0.1)");
+    shouldThrow("node.gain.exponentialRampToValueAtTime(0, 0.1)");
 }
 
 runTest();