From 816c7eddef7fc3f89a865faccfefb8ae13e1172a Mon Sep 17 00:00:00 2001 From: kkapsner Date: Tue, 12 Mar 2019 22:30:37 +0100 Subject: [PATCH] Linting --- test/audioTest.js | 6 +++--- test/navigatorTest.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/audioTest.js b/test/audioTest.js index 5a4d1fd..b21ace9 100644 --- a/test/audioTest.js +++ b/test/audioTest.js @@ -107,9 +107,9 @@ context.oncomplete = function(event){ var chunkTest = new Float32Array(44100); var number = new Float32Array(100); - for (var i = 0; i < 44100; i += number.length){ - event.renderedBuffer.copyFromChannel(number, 0, i); - chunkTest.set(number, i); + for (var chunkI = 0; chunkI < 44100; chunkI += number.length){ + event.renderedBuffer.copyFromChannel(number, 0, chunkI); + chunkTest.set(number, chunkI); } displayData(chunkTest, setName, "copyFromChannel - chunks"); diff --git a/test/navigatorTest.js b/test/navigatorTest.js index 35d430f..3012aee 100644 --- a/test/navigatorTest.js +++ b/test/navigatorTest.js @@ -22,7 +22,7 @@ var createLog = function(){ var log = createLog(); -log("user agent equal between server and client: " + (serverUserAgent === navigator.userAgent)); +log("user agent equal between server and client: " + (window.serverUserAgent === navigator.userAgent)); Object.keys(navigator.__proto__).sort().forEach(function(property){ "use strict";