зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440321 - Manually convert generators from devtools/client/memory/test/browser/. r=jryans
This commit is contained in:
Родитель
bcf6facc3c
Коммит
d814d88fdd
|
@ -11,7 +11,7 @@ const D3_SCRIPT = '<script type="application/javascript" ' +
|
|||
'src="chrome://devtools/content/shared/vendor/d3.js>';
|
||||
const TEST_URL = `data:text/html,<html><body>${D3_SCRIPT}</body></html>`;
|
||||
|
||||
this.test = makeMemoryTest(TEST_URL, function* ({ tab, panel }) {
|
||||
this.test = makeMemoryTest(TEST_URL, async function ({ tab, panel }) {
|
||||
const document = panel.panelWin.document;
|
||||
const window = panel.panelWin;
|
||||
const div = document.createElement("div");
|
||||
|
|
|
@ -14,7 +14,7 @@ const PIXEL_SCROLL_MODE = 0;
|
|||
const PIXEL_DELTA = 10;
|
||||
const MAX_RAF_LOOP = 1000;
|
||||
|
||||
this.test = makeMemoryTest(TEST_URL, function* ({ tab, panel }) {
|
||||
this.test = makeMemoryTest(TEST_URL, async function ({ tab, panel }) {
|
||||
const panelWin = panel.panelWin;
|
||||
const panelDoc = panelWin.document;
|
||||
const div = panelDoc.createElement("div");
|
||||
|
|
|
@ -48,7 +48,7 @@ this.closeMemoryPanel = async function(tab) {
|
|||
*
|
||||
* Example usage:
|
||||
*
|
||||
* this.test = makeMemoryTest(TEST_URL, function* ({ tab, panel }) {
|
||||
* this.test = makeMemoryTest(TEST_URL, async function ({ tab, panel }) {
|
||||
* // Your tests go here...
|
||||
* });
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче