Closed
Bug 803493
Opened 12 years ago
Closed 12 years ago
Move WebRTC Mochitests from dom/tests/mochitests/media to /dom/media/tests/mochitest
Categories
(Core :: WebRTC, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Whiteboard: [WebRTC], [blocking-webrtc-], [qa-])
Attachments
(2 files)
(deleted),
patch
|
ted
:
review+
whimboo
:
checkin+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jesup
:
review+
whimboo
:
checkin+
|
Details | Diff | Splinter Review |
It would be useful to have the Mochitests right next to the actual code. It's similar to the crashtests which are located under /dom/media/tests/crashtests. Due to that Mochitests are the default test framework those should be moved to /dom/media/tests. Other frameworks will get their own subfolder.
Keep in mind that on the alder project branch there are tests located in /dom/media/tests but those are not on m-c and also shouldn't force us to use another location.
This task aligns to what we are doing recently for other modules too.
Jason, would you like to take that?
Comment 1•12 years ago
|
||
Invalid. I thought about this one when I originally was choosing the directory structure, but in reality, nobody was consistent in what they were choosing. I went with sticking the tests in one location mainly cause that mainly separates out digging into understanding the module's development vs. what you are aiming to test. I could technically hear arguments from either side, but I don't think it's worth arguing over this semantic, as that distracts us from what we really should be focusing on.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 2•12 years ago
|
||
You are welcome to join our Automation Development meeting on Monday, when we want to discuss that. But please don't close it as invalid right now.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 3•12 years ago
|
||
Talked with media guys, dom/media/tests it is
Whiteboard: [WebRTC], [blocking-webrtc-]
Assignee | ||
Comment 4•12 years ago
|
||
I will take it.
Also see my newsgroup post:
https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.platform/P4sE3wYV3Es
Assignee: nobody → hskupin
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 5•12 years ago
|
||
This patch moves the tests from /dom/tests/mochitest/media/ to /dom/media/tests/mochitest.
Attachment #675240 -
Flags: review?(rjesup)
Comment 6•12 years ago
|
||
Comment on attachment 675240 [details] [diff] [review]
Patch v1
Review of attachment 675240 [details] [diff] [review]:
-----------------------------------------------------------------
Review- only for the TEST_DIRS issue, as I don't think we should suggest starting a trend to stick all test dirs at the top-level directory. I'd also suggest doing a try run to make sure everything is hooked up okay.
::: dom/Makefile.in
@@ +98,5 @@
> TEST_DIRS += \
> tests \
> imptests \
> bindings/test \
> + media/tests/mochitest \
I might suggest changing this to the following:
- media in this file
- Add TEST_DIRS with the directory below for followup level in the following Makefile
That will help separate out directory-specific details out a bit more.
::: dom/media/tests/mochitest/head.js
@@ +16,5 @@
> +function runTest(aCallback) {
> + SimpleTest.waitForExplicitFinish();
> +
> + SpecialPowers.pushPrefEnv({'set': [['media.peerconnection.enabled', true],
> + ['media.navigator.permission.disabled', true]]},
I realized after adding this, but seeing your other patch review that we actually don't need media.navigator.permission.disabled. Do you want to kill that off in this patch or take care of it separately?
Attachment #675240 -
Flags: review-
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 675240 [details] [diff] [review]
Patch v1
Switching over to Ted to get additional feedback on such a change. Ted, please also see the latest comment from Jason for that patch.
Attachment #675240 -
Flags: review?(rjesup) → review?(ted)
Comment 8•12 years ago
|
||
Comment on attachment 675240 [details] [diff] [review]
Patch v1
Review of attachment 675240 [details] [diff] [review]:
-----------------------------------------------------------------
The build config peers are against Makefile proliferation. You don't need to add a second level Makefile that just has TEST_DIRS in it, putting the subdirectory into TEST_DIRS here is just fine.
r=me on the build bits.
Attachment #675240 -
Flags: review?(ted) → review+
Updated•12 years ago
|
Attachment #675240 -
Flags: review-
Assignee | ||
Comment 9•12 years ago
|
||
Target Milestone: --- → mozilla19
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [WebRTC], [blocking-webrtc-] → [WebRTC], [blocking-webrtc-], [qa-]
Comment 11•12 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #8)
> Comment on attachment 675240 [details] [diff] [review]
> Patch v1
>
> Review of attachment 675240 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> The build config peers are against Makefile proliferation. You don't need to
> add a second level Makefile that just has TEST_DIRS in it, putting the
> subdirectory into TEST_DIRS here is just fine.
>
> r=me on the build bits.
There's a Makefile in dom/media/, though, which would have been a better place for this.
Assignee | ||
Comment 12•12 years ago
|
||
Apologies for that and misreading Jasons comment on it. He was already right with that. Not sure why I missed that we already have a makefile directly under /dom/media there. I will attach a follow-up patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•12 years ago
|
Attachment #675240 -
Flags: checkin+
Assignee | ||
Comment 13•12 years ago
|
||
This patch fixes the Makefile.in entry for dom/media tests. I also did a try server run to ensure everything is fine - and we are green:
https://tbpl.mozilla.org/?tree=Try&rev=0030b4f76c3c
Attachment #676019 -
Flags: review?(rjesup)
Assignee | ||
Updated•12 years ago
|
Summary: Move WebRTC Mochitests from dom/tests/mochitests/media to /dom/media/tests → Move WebRTC Mochitests from dom/tests/mochitests/media to /dom/media/tests/mochitest
Updated•12 years ago
|
Attachment #676019 -
Flags: review?(rjesup) → review+
Assignee | ||
Comment 14•12 years ago
|
||
Comment on attachment 676019 [details] [diff] [review]
Fix for Makefile.in
https://hg.mozilla.org/integration/mozilla-inbound/rev/0cbe3d87fa74
Attachment #676019 -
Flags: checkin+
Comment 15•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•