Firefox/Windows 8 Integration: Difference between revisions

Jump to navigation Jump to search
Line 183: Line 183:
  layout.css.devPixelsPerPx = 1.0 (default is -1.0, which makes Firefox autoscale CSS pixels)
  layout.css.devPixelsPerPx = 1.0 (default is -1.0, which makes Firefox autoscale CSS pixels)


To start the tests, run the following command in the mozilla-build shell, at the top level of your obj-dir:
To run all the tests, run the following [[mach]] command in the mozilla-build shell in your mozilla-central source directory:


  ./mach mochitest-metro
  ./mach mochitest-metro
Line 192: Line 192:


The Metro browser will launch, run the tests and exit.  Any failures will be printed to the console.  The complete test log will be written to the file <code>mochitest-metro-chrome.log</code> in the objdir.
The Metro browser will launch, run the tests and exit.  Any failures will be printed to the console.  The complete test log will be written to the file <code>mochitest-metro-chrome.log</code> in the objdir.
We have a library of convenience functions for use in metro-chrome tests, which you can find in '''[http://dxr.mozilla.org/mozilla-central/source/browser/metro/base/tests/mochitest/head.js head.js]'''.  Note: These tests make heavy use of Promises and [https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Task.jsm Task.jsm].


=== Building on Linux or Mac OS X ===
=== Building on Linux or Mac OS X ===
canmove, Confirmed users
1,584

edits

Navigation menu