Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Brian Grinstead 7ab932d712 Bug 1544051 - Part 2 - Remove some references to AddTask.js that aren't caught by the script in part 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D27760

--HG--
extra : moz-landing-system : lando
2019-04-18 16:50:39 +00:00
Brian Grinstead 662c3bf371 Bug 1543841 - Remove newlines for the #content and #test nodes in `./mach addtest` templates r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D27188

--HG--
extra : moz-landing-system : lando
2019-04-12 05:04:50 +00:00
Brian Grinstead 8e0afeaab1 Bug 1543841 - Update `./mach addtest` templates to stop using [type] attribute on stylesheets r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D27181

--HG--
extra : moz-landing-system : lando
2019-04-12 05:04:14 +00:00
Brian Grinstead 05f5ec26a4 Bug 1540285 - Add a test generator script into `./mach addtest` r=ahal
Instead of:
perl gen_template.pl -b=123456 --type=plain > path/to/test_bug123456.html

You can do:
./mach addtest --suite="mochitest-plain" > path/to/test_bug123456.html

But you can also pass in a new file path and let it guess the suite/doc:

```
# mochitest-chrome tests
./mach addtest js/xpconnect/tests/chrome/test_chrome.html
./mach addtest js/xpconnect/tests/chrome/test_chrome.xhtml
./mach addtest js/xpconnect/tests/chrome/test_chrome.xul

# mochitest-plain tests
./mach addtest js/xpconnect/tests/mochitest/test_plain.html
./mach addtest js/xpconnect/tests/mochitest/test_plain.xhtml
./mach addtest js/xpconnect/tests/mochitest/test_plain.xul

# mochitest-browser tests
./mach addtest browser/base/content/test/alerts/browser_foo.js

# xpcshell tests
./mach addtest browser/components/extensions/test/xpcshell/test_xpcshell.js
```

This also changes the mochitest template files in the following ways:
- removes the bug # boilerplate
- remove some unnecessary attributes in the template
- removes the th.template
- adds the browser.template for browser-chrome tests

Differential Revision: https://phabricator.services.mozilla.com/D25482

--HG--
rename : testing/mochitest/static/chrome.template.txt => testing/mochitest/static/chromehtml.template.txt
rename : testing/mochitest/static/test.template.txt => testing/mochitest/static/plainhtml.template.txt
rename : testing/mochitest/static/xhtml.template.txt => testing/mochitest/static/plainxhtml.template.txt
rename : testing/mochitest/static/xul.template.txt => testing/mochitest/static/plainxul.template.txt
extra : moz-landing-system : lando
2019-04-08 19:09:42 +00:00