Auto merge of #21757 - ferjm:offlineaudiocontext.constructor, r=jdm

Check constraints in both overloaded OfflineAudioContext constructors

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] There are WPTs tests for these changes and this should fix the remaining OfflineAudioContext failures.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21757)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-09-25 12:02:36 -04:00 committed by GitHub
commit 81fe52bd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 35 deletions

View file

@ -1,16 +0,0 @@
[ctor-offlineaudiocontext.html]
[# AUDIT TASK RUNNER FINISHED: 1 out of 4 tasks were failed.]
expected: FAIL
[X new OfflineAudioContext({"length":1,"sampleRate":1}) did not throw an exception.]
expected: FAIL
[X new OfflineAudioContext({"length":0,"sampleRate":8000}) did not throw an exception.]
expected: FAIL
[< [options-2\] 3 out of 3 assertions were failed.]
expected: FAIL
[X new OfflineAudioContext({"length":42,"sampleRate":8000,"numberOfChannels":33}) did not throw an exception.]
expected: FAIL