Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-21803: Implement ConstantSourceNode audionode #23919

Merged
merged 1 commit into from Aug 15, 2019

Conversation

tdelacour
Copy link

@tdelacour tdelacour commented Aug 6, 2019

More or less followed the steps outlined in components/script/dom/mod.rs (and also used the previous PR on this issue as reference). Updated wpt tests as well.


  • There are tests for these changes OR
  • These changes do not require tests because ___

This change is Reviewable

@highfive
Copy link

highfive commented Aug 6, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webidls/BaseAudioContext.webidl, components/script/dom/webidls/ConstantSourceNode.webidl, components/script/dom/constantsourcenode.rs, components/script/dom/mod.rs, components/script/dom/baseaudiocontext.rs
  • @KiChjang: components/script/dom/webidls/BaseAudioContext.webidl, components/script/dom/webidls/ConstantSourceNode.webidl, components/script/dom/constantsourcenode.rs, components/script/dom/mod.rs, components/script/dom/baseaudiocontext.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 6, 2019
@paulrouget
Copy link
Contributor

r? @ferjm / @jdm

@highfive highfive assigned ferjm and unassigned paulrouget Aug 9, 2019
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please squash all the commits.

@@ -1,5 +1,4 @@
[constant-source-basic.html]
expected: ERROR
[X Factory method: node = context.createConstantSource() incorrectly threw TypeError: "context.createConstantSource is not a function".]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this whole file can be deleted now.

@@ -1,5 +1,4 @@
[ctor-constantsource.html]
expected: ERROR
[X node0 = new ConstantSourceNode(context) incorrectly threw TypeError: "window[name\] is not a constructor".]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole file can be deleted.

@jdm jdm added S-needs-squash Some (or all) of the commits in the PR should be combined. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 9, 2019
@jdm jdm assigned jdm and unassigned ferjm Aug 9, 2019
@paulrouget
Copy link
Contributor

r? @ferjm / @jdm

@highfive highfive assigned ferjm and unassigned jdm Aug 10, 2019
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 10, 2019
@tdelacour
Copy link
Author

OK @jdm, done!

@jdm
Copy link
Member

jdm commented Aug 10, 2019

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

📌 Commit b0a5d02 has been approved by jdm

@highfive highfive assigned jdm and unassigned ferjm Aug 10, 2019
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-squash Some (or all) of the commits in the PR should be combined. labels Aug 10, 2019
@bors-servo
Copy link
Contributor

⌛ Testing commit b0a5d02 with merge 1fd8015...

bors-servo pushed a commit that referenced this pull request Aug 10, 2019
ISSUE-21803: Implement ConstantSourceNode audionode

<!-- Please describe your changes on the following line: -->
More or less followed the steps outlined in `components/script/dom/mod.rs` (and also used the [previous PR](#23152) on this issue as reference). Updated `wpt` tests as well.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21803 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23919)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 10, 2019
@jdm
Copy link
Member

jdm commented Aug 10, 2019

Surprising new failures:

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Linear+SetTarget: At time 0.01556396484375 (frame 255) output is not close to 2.9921875 within a relative error of 0 (RelErr=0.6657963446475196). Got 1.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beCloseTo@http://web-platform.test:8000/webaudio/resources/audit.js:876:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:183:24

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] < [Insert same event at same time] 2 out of 15 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:104:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] < [Multiple exponential ramps at the same time] 2 out of 6 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:237:32

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] < [Linear + Expo] 2 out of 6 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:125:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Multiple linear ramps: Output at frame 63 is not close to 1.984375 within a relative error of 0 (RelErr=2.4795649971548968). Got 6.904761791229248.
  │   → assert_true: expected true got false
  │ FAIL [expected PASS] X Multiple exponential ramps: Output at frame 63 is not close to 1.978456026387951 within a relative error of 5.3924e-7 (RelErr=2.4304996397067242). Got 6.787092685699463.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beCloseTo@http://web-platform.test:8000/webaudio/resources/audit.js:876:19
  └ testMultipleSameEvents/<@http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:379:16

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] # AUDIT TASK RUNNER FINISHED: 6 out of 6 tasks were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finish@http://web-platform.test:8000/webaudio/resources/audit.js:1276:9
  │ _runNextTask@http://web-platform.test:8000/webaudio/resources/audit.js:1263:14
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1220:24
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:237:32

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] < [Multiple linear ramps at the same time] 2 out of 6 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:224:32

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Linear+Expo: At time 0.015625 (frame 256) and later, output: Expected 3 for all values but found 256 unexpected values: \n\tIndex\tActual\n\t[0]\t99\n\t[1]\t99\n\t[2]\t99\n\t[3]\t99\n\t...and 252 more errors.
  │   → assert_true: expected true got false
  │ FAIL [expected PASS] X Expo+Linear: At time 0.015625 (frame 256) and later, output: Expected 2 for all values but found 256 unexpected values: \n\tIndex\tActual\n\t[0]\t99\n\t[1]\t99\n\t[2]\t99\n\t[3]\t99\n\t...and 252 more errors.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beConstantValueOf@http://web-platform.test:8000/webaudio/resources/audit.js:662:19
  └ expectConstant/<@http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:321:16

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] < [Linear + SetTarget] 2 out of 7 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:211:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Multiple linear ramps: Output at frame 64 (0.00390625 sec) is not equal to 10. Got 7.
  │   → assert_true: expected true got false
  │ FAIL [expected PASS] X Multiple exponential ramps: Output at frame 64 (0.00390625 sec) is not equal to 10. Got 7.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beEqualTo@http://web-platform.test:8000/webaudio/resources/audit.js:491:19
  └ testMultipleSameEvents/<@http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:386:16

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Linear+SetTarget: At time 0.015625 (frame 256) and later does not equal [100,99.93898010253906,99.87800598144531,99.81706237792969,99.75615692138672,99.6952896118164,99.63446044921875,99.57366180419922,99.51290893554688,99.45218658447266,99.39151000976562,99.33086395263672,99.27025604248047,99.20968627929688,99.1491470336914,99.08865356445312...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":1.7807e-7}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1]\t1.0000000000000000e+2\t9.9938980102539063e+1\t6.1019897460937500e-2\t6.1057154473990094e-4\t1.7796134186859131e-5\n\t[2]\t1.0000000000000000e+2\t9.9878005981445313e+1\t1.2199401855468750e-1\t1.2214302574017222e-3\t1.7785276525115967e-5\n\t[3]\t1.0000000000000000e+2\t9.9817062377929688e+1\t1.8293762207031250e-1\t1.8327289715025855e-3\t1.7774424297637941e-5\n\t[4]\t1.0000000000000000e+2\t9.9756156921386719e+1\t2.4384307861328125e-1\t2.4443912650468570e-3\t1.7763578862991333e-5\n\t[5]\t1.0000000000000000e+2\t9.9695289611816406e+1\t3.0471038818359375e-1\t3.0564171022527216e-3\t1.7752740221176149e-5\n\t...and 250 more errors.\n\tMax AbsError of 1.4413246154785156e+1 at index of 255.\n\t[255]\t1.0000000000000000e+2\t8.5586753845214844e+1\t1.4413246154785156e+1\t1.6840510367821365e-1\t1.5240433257217408e-5\n\tMax RelError of 1.6840510367821365e-1 at index of 255.\n\t[255]\t1.0000000000000000e+2\t8.5586753845214844e+1\t1.4413246154785156e+1\t1.6840510367821365e-1\t1.5240433257217408e-5\n
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beCloseToArray@http://web-platform.test:8000/webaudio/resources/audit.js:1019:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:209:24

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Linear+Expo: At time 0.01556396484375 (frame 255) output is not close to 1.99609375 within a relative error of 0 (RelErr=0.49902152641878667). Got 1.
  │   → assert_true: expected true got false
  │ FAIL [expected PASS] X Expo+Linear: At time 0.01556396484375 (frame 255) output is not close to 2.9871532226369792 within a relative error of 0.0000042533 (RelErr=0.6652331080903755). Got 1.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beCloseTo@http://web-platform.test:8000/webaudio/resources/audit.js:876:19
  └ expectConstant/<@http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:311:16

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] X Output at frame 512 (time 0.03125) is not equal to 4. Got 3.
  │   → assert_true: expected true got false
  │ FAIL [expected PASS] X Output at frame 640 (time 0.0390625) is not equal to 5. Got 1.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beEqualTo@http://web-platform.test:8000/webaudio/resources/audit.js:491:19
  │ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:101:26
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:95:29

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:
  │ FAIL [expected PASS] < [Expo + Linear] 2 out of 6 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/event-insertion.html:150:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:
  │ FAIL [expected PASS] X output[1] is not close to 1.1342744887950962e+38 within a relative error of 0 (RelErr=2). Got 3.4028234663852886e+38.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beCloseTo@http://web-platform.test:8000/webaudio/resources/audit.js:876:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:148:50

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:
  │ FAIL [expected PASS] < [no-nan] 2 out of 5 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:84:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:
  │ FAIL [expected PASS] < [interpolation] 1 out of 7 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:155:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:
  │ FAIL [expected PASS] X output[0] is not equal to 10. Got NaN.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beEqualTo@http://web-platform.test:8000/webaudio/resources/audit.js:491:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:77:50

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:
  │ FAIL [expected PASS] # AUDIT TASK RUNNER FINISHED: 2 out of 2 tasks were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finish@http://web-platform.test:8000/webaudio/resources/audit.js:1276:9
  │ _runNextTask@http://web-platform.test:8000/webaudio/resources/audit.js:1263:14
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1220:24
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:155:34

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:
  │ FAIL [expected PASS] X output[1]: Expected 3.4028234663852886e+38 for all values but found 127 unexpected values: \n\tIndex\tActual\n\t[0]\tNaN\n\t[1]\tNaN\n\t[2]\tNaN\n\t[3]\tNaN\n\t...and 123 more errors.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beConstantValueOf@http://web-platform.test:8000/webaudio/resources/audit.js:662:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html:82:24

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:
  │ FAIL [expected PASS] # AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finish@http://web-platform.test:8000/webaudio/resources/audit.js:1276:9
  │ _runNextTask@http://web-platform.test:8000/webaudio/resources/audit.js:1263:14
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1220:24
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:45:30

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:
  │ FAIL [expected PASS] X Righteft channel: Expected 0.7071067690849304 for all values but found 16000 unexpected values: \n\tIndex\tActual\n\t[0]\t0\n\t[1]\t0\n\t[2]\t0\n\t[3]\t0\n\t...and 15996 more errors.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beConstantValueOf@http://web-platform.test:8000/webaudio/resources/audit.js:662:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:43:46

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:
  │ FAIL [expected PASS] < [Azimuth calculation] 2 out of 2 assertions were failed.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ done@http://web-platform.test:8000/webaudio/resources/audit.js:1217:9
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:45:30

  ▶ Unexpected subtest result in /webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:
  │ FAIL [expected PASS] X Left channel: Expected 0.7071067690849304 for all values but found 16000 unexpected values: \n\tIndex\tActual\n\t[0]\t0\n\t[1]\t0\n\t[2]\t0\n\t[3]\t0\n\t...and 15996 more errors.
  │   → assert_true: expected true got false
  │ 
  │ _logFailed/<@http://web-platform.test:8000/webaudio/resources/audit.js:50:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ _logFailed@http://web-platform.test:8000/webaudio/resources/audit.js:49:5
  │ _finalize@http://web-platform.test:8000/webaudio/resources/audit.js:215:9
  │ _assert@http://web-platform.test:8000/webaudio/resources/audit.js:228:12
  │ beConstantValueOf@http://web-platform.test:8000/webaudio/resources/audit.js:662:19
  └ @http://web-platform.test:8000/webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html:42:42

Delightful new passes:

  ▶ OK [expected ERROR] /webaudio/the-audio-api/the-pannernode-interface/panner-azimuth.html

  ▶ OK [expected ERROR] /webaudio/the-audio-api/the-audioparam-interface/audioparam-close.html

  ▶ OK [expected ERROR] /webaudio/the-audio-api/the-audioparam-interface/k-rate-panner.html

  ▶ OK [expected ERROR] /webaudio/the-audio-api/the-audioparam-interface/k-rate-constant-source.html

  ▶ OK [expected ERROR] /webaudio/the-audio-api/the-audioparam-interface/set-target-conv.html

  ▶ OK [expected ERROR] /webaudio/the-audio-api/the-audioparam-interface/event-insertion.html

Test that needs to be updated to include the new interface:

  ▶ Unexpected subtest result in /_mozilla/mozilla/interfaces.html:
  │ FAIL [expected PASS] Interfaces exposed on the window
  │   → assert_true: If this is failing: DANGER, are you sure you want to expose the new interface ConstantSourceNode to all webpages as a property on the global? Do not make a change to this file without review from jdm or Ms2ger for that specific change! expected true got false
  │ 
  │ test_interfaces/<@http://web-platform.test:8000/_mozilla/mozilla/interfaces.js:70:7
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1611:25
  │ test@http://web-platform.test:8000/resources/testharness.js:544:30
  │ test_interfaces@http://web-platform.test:8000/_mozilla/mozilla/interfaces.js:2:3
  └ @http://web-platform.test:8000/_mozilla/mozilla/interfaces.html:13:1

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 12, 2019
@tdelacour
Copy link
Author

@jdm wanted to be able to quickly undo the test metadata changes in case I misunderstood the request, so I have not squashed into one commit yet. Mind quickly confirming that this is fine?

If so I'll also go ahead and file the follow-up issue outlining the relevant tests that now fail.

@ferjm
Copy link
Contributor

ferjm commented Aug 12, 2019

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

⌛ Trying commit dc95d6c with merge 7120e3c...

bors-servo pushed a commit that referenced this pull request Aug 12, 2019
ISSUE-21803: Implement ConstantSourceNode audionode

<!-- Please describe your changes on the following line: -->
More or less followed the steps outlined in `components/script/dom/mod.rs` (and also used the [previous PR](#23152) on this issue as reference). Updated `wpt` tests as well.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21803 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23919)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 12, 2019
@ferjm
Copy link
Contributor

ferjm commented Aug 13, 2019

@jdm wanted to be able to quickly undo the test metadata changes in case I misunderstood the request, so I have not squashed into one commit yet. Mind quickly confirming that this is fine?

If so I'll also go ahead and file the follow-up issue outlining the relevant tests that now fail.

The test expectations changes look good to me. You can go ahead and squash the commits and file the follow-up issue. Thanks!

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Aug 13, 2019
@jdm
Copy link
Member

jdm commented Aug 15, 2019

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 6027dd1 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 15, 2019
@bors-servo
Copy link
Contributor

⌛ Testing commit 6027dd1 with merge 36e6896...

bors-servo pushed a commit that referenced this pull request Aug 15, 2019
ISSUE-21803: Implement ConstantSourceNode audionode

<!-- Please describe your changes on the following line: -->
More or less followed the steps outlined in `components/script/dom/mod.rs` (and also used the [previous PR](#23152) on this issue as reference). Updated `wpt` tests as well.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21803 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23919)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - status-taskcluster

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 15, 2019
@jdm
Copy link
Member

jdm commented Aug 15, 2019

@bors-servo retry

@bors-servo
Copy link
Contributor

💣 Failed to start rebuilding: Unknown error

@bors-servo
Copy link
Contributor

⌛ Testing commit 6027dd1 with merge 60c1908...

bors-servo pushed a commit that referenced this pull request Aug 15, 2019
ISSUE-21803: Implement ConstantSourceNode audionode

<!-- Please describe your changes on the following line: -->
More or less followed the steps outlined in `components/script/dom/mod.rs` (and also used the [previous PR](#23152) on this issue as reference). Updated `wpt` tests as well.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21803 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23919)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 15, 2019
@bors-servo
Copy link
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 60c1908 to master...

@bors-servo bors-servo merged commit 6027dd1 into servo:master Aug 15, 2019
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 15, 2019
@tdelacour tdelacour deleted the ISSUE-21803 branch August 15, 2019 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement ConstantSourceNode audio node type
6 participants