Open main menu

CDOT Wiki β

Changes

Mochitest FAQ

1,637 bytes added, 19:40, 29 November 2011
Created page with '== Getting Started == # Make sure you have forked a copy of mozilla-central. If you haven't, you can fork from [https://github.com/humphd/mozilla-central here] # Add a remote for…'
== Getting Started ==
# Make sure you have forked a copy of mozilla-central. If you haven't, you can fork from [https://github.com/humphd/mozilla-central here]
# Add a remote for rhung's mozilla-central (this is where you'll be making your pull requests for the tests)
<pre>git remote add [an alias] git://github.com/rhung/mozilla-central.git</pre>
# For a basic template to get started on writing mochitests, you can get one [http://pastebin.com/2ikiY7v8 here].


== Making a pull request to someone that you didn't fork from ==
# Click on the pull request button and you should get a screen with something similar to [http://raymondhung.files.wordpress.com/2011/11/changepulltarget.png this]
# By clicking on the '''Change Commits''' you'll get a screen to look something like [http://raymondhung.files.wordpress.com/2011/11/changingtarget.png this]
# If you forked from humphd's repository, your '''Base branch''' should look something similar to the screenshot posted above. You want to change from humphd/mozilla-central to rhung/mozilla-central
# Next after the '''@''' symbol, you want to make sure to select the mouselock-tests. It'll look something like [http://raymondhung.files.wordpress.com/2011/11/selectproperbranch.png this]
# You can also make sure you have proper branch selected by changing the branch shown under your '''Head branch''' box after everything that needs to be changed is changed, click '''Update Commit Range'''
# Finally you'll just have to fill in [http://raymondhung.files.wordpress.com/2011/11/fillandfinish.png this], once you do, click '''Send Pull Request''' and if everything works, you're done!
1
edit