Skip to content

Commit

Permalink
Merge pull request #144 from GoogleChrome/resetIndex
Browse files Browse the repository at this point in the history
Reset counters so that the test can be run again for camresolutiontest.js. Fixes #145.
  • Loading branch information
andresusanopinto committed Oct 13, 2014
2 parents 84a595c + fe05486 commit d1e6e68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/web/content/testrtc/js/camresolutionstest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
*/

var CamResolutionsTest = {};
CamResolutionsTest.index = 0;
CamResolutionsTest.supported = 0;
CamResolutionsTest.unsupported = 0;
// Each resolution has width, height and 'mandatory' fields.
CamResolutionsTest.resolutions = [ [ 160, 120, false],
[ 320, 180, false],
Expand All @@ -45,6 +42,9 @@ CamResolutionsTest.mandatory_yet_unsupported_resolutions = 0;
CamResolutionsTest.numResolutions = CamResolutionsTest.resolutions.length;

CamResolutionsTest.camResolutionsTest = function () {
CamResolutionsTest.index = 0;
CamResolutionsTest.supported = 0;
CamResolutionsTest.unsupported = 0;
trace('Checking ' + CamResolutionsTest.numResolutions + ' constraint sets');
CamResolutionsTest.triggerGetUserMedia(CamResolutionsTest.resolutions[0]);
}
Expand Down

0 comments on commit d1e6e68

Please sign in to comment.