Difference between revisions of "How-Tos"

From CDOT Wiki
Jump to: navigation, search
(Wiki)
Line 3: Line 3:
  
 
==Wiki==
 
==Wiki==
===Adding a how-to===
+
{|style="background-color:LightYellow;width:100%;"
 +
|-
 +
|width="50" colspan="2"|
 +
|
 +
===<span style="color:DarkRed">Adding a how-to</span>===
 +
<blockquote>
 
To add a how-to to this page add a heading under the correct category OR create a category if one doesn't exist.  There are currently no formatting or style rules.  The suggestion is to be clean and well laid out.  Look over the current how-to's to get a feel on how your tutorial should be laid out.  Thank you for the contribution.
 
To add a how-to to this page add a heading under the correct category OR create a category if one doesn't exist.  There are currently no formatting or style rules.  The suggestion is to be clean and well laid out.  Look over the current how-to's to get a feel on how your tutorial should be laid out.  Thank you for the contribution.
 
+
</blockquote>
===Creating a Wiki page===
+
===<span style="color:DarkRed">Creating a Wiki page</span>===
 
Here are two ways to create a wiki page:
 
Here are two ways to create a wiki page:
{|style="padding:5px"
+
{|style="padding:5px;background-color:LightYellow;border-collapse:collapse;"
|-valign="top"
+
|-valign="top" align="center"
|Option A
+
|'''Option A'''
|Option B
+
|style="background-color:LightYellow;" width="30"|
|-valign="top"
+
|'''Option B'''
|Step 1
+
|-valign="top" style="background-color:PaleGoldenrod;"
|Step 1
+
|<span style="color:DarkRed">Step 1</span>
 +
|style="background-color:LightYellow;"|
 +
|<span style="color:DarkRed">Step 1</span>
 
|-valign="top"
 
|-valign="top"
 
|Enter a title of a page into the search box on the left side and click on go.
 
|Enter a title of a page into the search box on the left side and click on go.
 +
|style="background-color:LightYellow;"|
 
|On some page choose the edit option.
 
|On some page choose the edit option.
|-valign="top"
+
|-valign="middel" align="center" style="background-color:Peru;"
 
|[[Image:How-tos-wiki-page-search.JPG]]
 
|[[Image:How-tos-wiki-page-search.JPG]]
 +
|style="background-color:LightYellow;"|
 
|[[Image:How-tos-wiki-page-edit.JPG]]
 
|[[Image:How-tos-wiki-page-edit.JPG]]
|-valign="top"
+
|-
|Step 2
+
|&nbsp;
|Step 2
+
|style="background-color:LightYellow;"|
|-valign="top"
+
|
 +
|-valign="top" style="background-color:PaleGoldenrod;"
 +
|<span style="color:DarkRed">Step 2</span>
 +
|style="background-color:LightYellow;"|
 +
|<span style="color:DarkRed">Step 2</span>
 +
|-valign="top"  
 
|A new page appears saying that the page could not be found. Click on create this page.
 
|A new page appears saying that the page could not be found. Click on create this page.
 +
|style="background-color:LightYellow;"|
 
|Create a link to the page you want to created.  Ex.  <pre>[[test_page | test]]</pre>
 
|Create a link to the page you want to created.  Ex.  <pre>[[test_page | test]]</pre>
|-valign="top"
+
|-valign="middel" align="center" style="background-color:Peru;"
 
|[[Image:How-tos-wiki-page-create.JPG]]
 
|[[Image:How-tos-wiki-page-create.JPG]]
 +
|style="background-color:LightYellow;"|
 
|[[Image:How-tos-wiki-page-edit_link.JPG]]
 
|[[Image:How-tos-wiki-page-edit_link.JPG]]
|-valign="top"
+
|-
|Step 3
+
|&nbsp;
|Step 3
+
|style="background-color:LightYellow;"|
 +
|
 +
|-valign="top" style="background-color:PaleGoldenrod;"
 +
|<span style="color:DarkRed">Step 3</span>
 +
|style="background-color:LightYellow;"|
 +
|<span style="color:DarkRed">Step 3</span>
 
|-valign="top"
 
|-valign="top"
 
|Enter anything into the text box and press save.
 
|Enter anything into the text box and press save.
 +
|style="background-color:LightYellow;"|
 
|Click on the Show Preview button.  The link now appears in red.  This indicates that the page the link is pointing to does not exist.
 
|Click on the Show Preview button.  The link now appears in red.  This indicates that the page the link is pointing to does not exist.
|-valign="top"
+
|-valign="middel" align="center" style="background-color:Peru;"
 
|[[Image:How-tos-wiki-page-save.JPG]]
 
|[[Image:How-tos-wiki-page-save.JPG]]
 +
|style="background-color:LightYellow;"|
 
|[[Image:How-tos-wiki-page-save.JPG]]
 
|[[Image:How-tos-wiki-page-save.JPG]]
|-valign="top"
+
|-
 +
|&nbsp;
 +
|style="background-color:LightYellow;"|
 
|
 
|
|Step 4
+
|-valign="top" style="background-color:PaleGoldenrod;"
 +
|style="background-color:LightYellow;"|
 +
|style="background-color:LightYellow;"|
 +
|<span style="color:DarkRed">Step 4</span>
 
|-valign="top"
 
|-valign="top"
|
+
|style="background-color:LightYellow;"|
 +
|style="background-color:LightYellow;"|
 
|Click on the red link.  A page appears with '<code>You've followed a link to a page that doesn't exist yet</code>'.
 
|Click on the red link.  A page appears with '<code>You've followed a link to a page that doesn't exist yet</code>'.
|-valign="top"
+
|-valign="middel" align="center" style="background-color:Peru;"
|
+
|style="background-color:LightYellow;"|
 +
|style="background-color:LightYellow;"|
 
|[[Image:How-tos-wiki-page-doesnt_exist.JPG]]
 
|[[Image:How-tos-wiki-page-doesnt_exist.JPG]]
 +
|-
 +
|style="background-color:LightYellow;"|&nbsp;
 +
|style="background-color:LightYellow;"|
 +
|style="background-color:LightYellow;"|
 +
|-valign="top" style="background-color:PaleGoldenrod;"
 +
|style="background-color:LightYellow;"|
 +
|style="background-color:LightYellow;"|
 +
|<span style="color:DarkRed">Step 5</span>
 
|-valign="top"
 
|-valign="top"
|
+
|style="background-color:LightYellow;"|
|Step 5
+
|style="background-color:LightYellow;"|
|-valign="top"
 
|
 
 
|Enter anything into the text box and press save.
 
|Enter anything into the text box and press save.
|-valign="top"
+
|-valign="middel" align="center" style="background-color:Peru;"
|
+
|style="background-color:LightYellow;"|
 +
|style="background-color:LightYellow;"|
 
|[[Image:How-tos-wiki-page-save.JPG]]
 
|[[Image:How-tos-wiki-page-save.JPG]]
|}
+
|} <!-- end of Outer Steps Table -->
<!--
 
|A new page has been created.
 
|-
 
|B)
 
|-
 
|Step 1)
 
|-
 
|On some page choose the edit option.
 
|-
 
|Step 2)
 
|-
 
|Create a link to the page you want to created.  Ex.  <pre>[[test_page | test]]</pre>
 
|-
 
|Step 3)
 
|-
 
|Click on the Show Preview button.  The link now appears in red.  This indicates that the page the link is pointing to does not exist.
 
|-
 
|Step 4)
 
|-
 
|Click on the red link.  A page appears with <code>You've followed a link to a page that doesn't exist yet. </code>.
 
|-
 
|Step 5)
 
|-
 
|Enter anything into the text box and press save.
 
|} -->
 
<!-- end of Outer Steps Table -->
 
  
 
A new page has been created.
 
A new page has been created.
Line 89: Line 100:
 
To create a page in a sub-directory. Change the link too testing/test_page.
 
To create a page in a sub-directory. Change the link too testing/test_page.
  
 +
|} <!-- End Wiki Section -->
 
==Mozilla==
 
==Mozilla==
 
{|style="background-color:LightYellow;width:100%;"
 
{|style="background-color:LightYellow;width:100%;"

Revision as of 15:35, 30 November 2008

Welcome

Welcome to the Seneca How-To page. You'll find How-To's for all things Open Source related.

Wiki

Adding a how-to

To add a how-to to this page add a heading under the correct category OR create a category if one doesn't exist. There are currently no formatting or style rules. The suggestion is to be clean and well laid out. Look over the current how-to's to get a feel on how your tutorial should be laid out. Thank you for the contribution.

Creating a Wiki page

Here are two ways to create a wiki page:

Option A Option B
Step 1 Step 1
Enter a title of a page into the search box on the left side and click on go. On some page choose the edit option.
How-tos-wiki-page-search.JPG How-tos-wiki-page-edit.JPG
 
Step 2 Step 2
A new page appears saying that the page could not be found. Click on create this page. Create a link to the page you want to created. Ex.
[[test_page | test]]
How-tos-wiki-page-create.JPG How-tos-wiki-page-edit link.JPG
 
Step 3 Step 3
Enter anything into the text box and press save. Click on the Show Preview button. The link now appears in red. This indicates that the page the link is pointing to does not exist.
How-tos-wiki-page-save.JPG How-tos-wiki-page-save.JPG
 
Step 4
Click on the red link. A page appears with 'You've followed a link to a page that doesn't exist yet'.
How-tos-wiki-page-doesnt exist.JPG
 
Step 5
Enter anything into the text box and press save.
How-tos-wiki-page-save.JPG

A new page has been created.

To create a page in a sub-directory. Change the link too testing/test_page.

Mozilla

Firefox

 

Automated Tests



For an overview on Automated testing with Mozilla can be found on the Mozilla Developer Center.

A requirement for all test is to make sure that Firefox is compiled with tests enabled.
Modify the .mozconfig file to include ac_add_options --enable-tests
Build Firefox from source.


Mochitests


Run all Mochitests
A)

Step 1

cd $(OBJDIR)/_tests/testing/mochitest

Step 2

python runtests.py

B)

Step 1

cd $(OBJDIR)

Step 2

make -C $(OBJDIR) mochitest

Specific Mochitests can be run by the following:

Step 1

cd $(OBJDIR)/_tests/testing/mochitest

Step 2

python runtests.py --test-path=content/base/test/test_CrossSiteXHR.html

There are more options that are available for running Mochitests.


XPCShell


Step 1

cd path/to/source/
make check

How to make xpcshell tests.


Reftests


Step 1

cd path/to/source/
path/to/dist/bin/firefox -no-remote -reftest layout/reftests/reftest.list

Here is a readme on reftests.

Thunderbird

Open Office

Eclipse

Linux

Fedora