Confirmed users
1,983
edits
Line 429: | Line 429: | ||
Metro Firefox can't accept standard command line parameters since it must be launched by Windows. The harness acts as a pass through for mozilla command line parameters firefox.exe can accept. Incoming params are written out to an ini file @ dist/bin and read in via [http://mxr.mozilla.org/mozilla-central/source/browser/app/nsBrowserApp.cpp nsBrowserApp] when the browser starts up. | Metro Firefox can't accept standard command line parameters since it must be launched by Windows. The harness acts as a pass through for mozilla command line parameters firefox.exe can accept. Incoming params are written out to an ini file @ dist/bin and read in via [http://mxr.mozilla.org/mozilla-central/source/browser/app/nsBrowserApp.cpp nsBrowserApp] when the browser starts up. | ||
By default the test harness assumes firefox.exe is in the same folder metrotestharness.exe is located. If you want to launch | By default the test harness assumes the default browser (firefox.exe) is in the same folder metrotestharness.exe is located. If you want to launch the default browser at a different location from metrotestharness.exe, you must specify a firefox path using -firefoxpath (fullpath): | ||
<pre>metrotestharness.exe -firefoxpath T:\Mozilla\objmcrel\dist\bin\firefox.exe -url www.mozilla.org</pre> | <pre>metrotestharness.exe -firefoxpath T:\Mozilla\objmcrel\dist\bin\firefox.exe -url www.mozilla.org</pre> | ||
The test harness will need *write* permission to this location to write out a command line arg ini file. | |||
[http://mxr.mozilla.org/mozilla-central/source/browser/metro/shell/testing/metrotestharness.cpp harness source] | [http://mxr.mozilla.org/mozilla-central/source/browser/metro/shell/testing/metrotestharness.cpp harness source] |