Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / webaudio / distance-linear.html
index 59dfdbe..57e9fda 100644 (file)
@@ -1,9 +1,9 @@
 <!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/compatibility.js"></script>
     <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/distance-model-testing.js"></script>
   </head>
 
           window.jsTestIsAsync = true;
 
           // Create offline audio context.
-          context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
+          context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
 
-          // Create temp panner to get LINEAR_DISTANCE value for testing.
-          var pannerModel = context.createPanner();
-          createTestAndRun(context, pannerModel.LINEAR_DISTANCE, 0);
+          createTestAndRun(context, "linear");
       }
 
       runTest();