<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=Development%3ATesting_arbitrary_scenarios_with_Mochitest</id>
	<title>Development:Testing arbitrary scenarios with Mochitest - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=Development%3ATesting_arbitrary_scenarios_with_Mochitest"/>
	<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;action=history"/>
	<updated>2026-05-08T17:53:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11600&amp;oldid=prev</id>
		<title>Sardisson: /* Additional Resources */ more updates for 1.9.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11600&amp;oldid=prev"/>
		<updated>2011-01-10T01:26:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Additional Resources: &lt;/span&gt; more updates for 1.9.2&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 01:26, 10 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot; &gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mochitest test files live across the tree in &amp;lt;code&amp;gt;tests/mochitest/&amp;lt;/code&amp;gt; directories, with some stragglers in &amp;lt;code&amp;gt;mozilla/testing/mochitest/tests/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mochitest test files live across the tree in &amp;lt;code&amp;gt;tests/mochitest/&amp;lt;/code&amp;gt; directories, with some stragglers in &amp;lt;code&amp;gt;mozilla/testing/mochitest/tests/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The test harness itself lives in &amp;lt;code&amp;gt;mozilla/testing/mochitest/&amp;lt;/code&amp;gt;, although code in &amp;lt;code&amp;gt;mozilla/build/pgo/&amp;lt;/code&amp;gt; is also used (e.g. &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The test harness itself lives in &amp;lt;code&amp;gt;mozilla/testing/mochitest/&amp;lt;/code&amp;gt;, although code in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;mozilla/build/&amp;lt;/code&amp;gt; and &lt;/ins&gt;&amp;lt;code&amp;gt;mozilla/build/pgo/&amp;lt;/code&amp;gt; is also used (e.g. &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11599&amp;oldid=prev</id>
		<title>Sardisson: /* Testing Your Scenario */ update link for 1.9.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11599&amp;oldid=prev"/>
		<updated>2011-01-10T01:24:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Testing Your Scenario: &lt;/span&gt; update link for 1.9.2&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 01:24, 10 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Testing Your Scenario==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Testing Your Scenario==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Gecko’s Mochitest test files are copied to subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests, by the build system.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;seamonkey&lt;/del&gt;/source/build/pgo/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;automation.py&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in#64 &lt;/del&gt;this list] in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt; for supported hosts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Gecko’s Mochitest test files are copied to subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests, by the build system.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mozilla1.9.2&lt;/ins&gt;/source/build/pgo/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;server-locations&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;txt &lt;/ins&gt;this list] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(formerly found &lt;/ins&gt;in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;) &lt;/ins&gt;for supported hosts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11021&amp;oldid=prev</id>
		<title>Sardisson: /* Testing Your Scenario */ even better?</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11021&amp;oldid=prev"/>
		<updated>2010-03-27T06:43:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Testing Your Scenario: &lt;/span&gt; even better?&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:43, 27 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Testing Your Scenario==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Testing Your Scenario==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Gecko’s Mochitest test files &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;live in &lt;/del&gt;subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/seamonkey/source/build/pgo/automation.py.in#64 this list] in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt; for supported hosts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Gecko’s Mochitest test files &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;are copied to &lt;/ins&gt;subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, by the build system&lt;/ins&gt;.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/seamonkey/source/build/pgo/automation.py.in#64 this list] in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt; for supported hosts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11020&amp;oldid=prev</id>
		<title>Sardisson: /* Testing Your Scenario */ add &quot;test&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11020&amp;oldid=prev"/>
		<updated>2010-03-27T06:43:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Testing Your Scenario: &lt;/span&gt; add &amp;quot;test&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:43, 27 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Testing Your Scenario==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Testing Your Scenario==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mochitest files live in subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/seamonkey/source/build/pgo/automation.py.in#64 this list] in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt; for supported hosts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gecko’s &lt;/ins&gt;Mochitest &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;test &lt;/ins&gt;files live in subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/seamonkey/source/build/pgo/automation.py.in#64 this list] in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt; for supported hosts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11019&amp;oldid=prev</id>
		<title>Sardisson: first draft</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Testing_arbitrary_scenarios_with_Mochitest&amp;diff=11019&amp;oldid=prev"/>
		<updated>2010-03-27T06:40:07Z</updated>

		<summary type="html">&lt;p&gt;first draft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Mozilla’s [https://developer.mozilla.org/en/Mochitest Mochitest testing framework] has support for Camino in Gecko 1.9.0 and later.  Mozilla Corp uses Mochitest to test a number of real-world web content behaviors and interactions in a controlled environment.  Mochitest runs a web server (written in JavaScript! and run by the xpcshell) on your computer and uses Gecko’s proxy support to map that server to multiple hostnames during the test session.&lt;br /&gt;
&lt;br /&gt;
Because of this architecture, it’s possible to run tests on various scenarios without having to find a live site on the Internet that behaves in the way you need to test.  (As an example, rather than tracking down [[Development:Planning:IDNs|sites with Internationalized Domain Names (IDN)]] in order to see how various parts of Camino’s UI handle IDNs, you can create test pages locally and access them via one of the built-in IDN hosts.)&lt;br /&gt;
&lt;br /&gt;
==Enabling Mochitest==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, Mochitest is only available when building with &amp;lt;code&amp;gt;ac_add_options --enable-tests&amp;lt;/code&amp;gt; in your &amp;lt;code&amp;gt;mozconfig&amp;lt;/code&amp;gt;.  You probably want to add this option only in a debug build, as logging output is less useful in a static build; in addition, the static build breaks in Gecko 1.9.0 because of problems linking certain test binaries.&lt;br /&gt;
&lt;br /&gt;
==Running Mochitest==&lt;br /&gt;
&lt;br /&gt;
Once your &amp;lt;code&amp;gt;--enable-tests&amp;lt;/code&amp;gt; (re)build is complete, you run Mochitest using &amp;lt;code&amp;gt;runtests.py&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$ cd $OBJDIR/_tests/testing/mochitest/&amp;lt;br /&amp;gt;&lt;br /&gt;
$ python runtests.py&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches Camino into the Mochitest harness, running from a special Mochitest profile (&amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;) which is created anew each time the Mochitest harness is launched.&lt;br /&gt;
&lt;br /&gt;
==Testing Your Scenario==&lt;br /&gt;
&lt;br /&gt;
Mochitest files live in subdirectories of &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/&amp;lt;/code&amp;gt;, e.g. &amp;lt;code&amp;gt;dom/&amp;lt;/code&amp;gt; for DOM tests.  For sanity’s sake, you should create your own subfolder for your scenario’s files. Then place all HTML and supporting files for your test into the subfolder you just created.  If you need to test cross-site interactions, see [http://mxr.mozilla.org/seamonkey/source/build/pgo/automation.py.in#64 this list] in &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt; for supported hosts.&lt;br /&gt;
&lt;br /&gt;
Be sure to set any Camino preferences that are required (Mochitest disables many Camino default preferences for automated testing purposes) and then navigate Camino to your test files using the chosen server name.  For example, if you are testing the pop-up blocker on παράδειγμα.δοκιμή and your test file is &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/tests/popups/test.html&amp;lt;/code&amp;gt;, navigate to http://sub1.παράδειγμα.δοκιμή/tests/popups/test.html to run your test.  If you need to examine any profile files during or following the testings, remember the profile is located in &amp;lt;code&amp;gt;$OBJDIR/_tests/testing/mochitest/mochitesttestingprofile/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
There is no step 3. When you have completed your test, quit Camino.  Happy testing!&lt;br /&gt;
&lt;br /&gt;
==Additional Resources==&lt;br /&gt;
&lt;br /&gt;
For more information about writing tests using advanced features of Mochitest, see the [https://developer.mozilla.org/en/Mochitest Mochitest documentation on MDC].&lt;br /&gt;
&lt;br /&gt;
Mochitest test files live across the tree in &amp;lt;code&amp;gt;tests/mochitest/&amp;lt;/code&amp;gt; directories, with some stragglers in &amp;lt;code&amp;gt;mozilla/testing/mochitest/tests/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The test harness itself lives in &amp;lt;code&amp;gt;mozilla/testing/mochitest/&amp;lt;/code&amp;gt;, although code in &amp;lt;code&amp;gt;mozilla/build/pgo/&amp;lt;/code&amp;gt; is also used (e.g. &amp;lt;code&amp;gt;automation.py&amp;lt;/code&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
</feed>