Bug 1316265 - Remove unnecessary Task.async() and yield from test. r=nchevobbe

MozReview-Commit-ID: 7fi7Pj7eJjd

--HG--
extra : rebase_source : 86deeffa31ebc0c552859f89c33f28a3be8edc75
This commit is contained in:
Tim Nguyen 2016-12-20 15:37:30 +01:00
Родитель 26aaa118a1
Коммит 92efda9b32
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -16,7 +16,7 @@ Test Func rep
<pre id="test">
<script src="head.js" type="application/javascript;version=1.8"></script>
<script type="application/javascript;version=1.8">
window.onload = Task.async(function* () {
window.onload = function () {
let { Rep } = browserRequire("devtools/client/shared/components/reps/rep");
let { Func } = browserRequire("devtools/client/shared/components/reps/function");
const { MODE } = browserRequire("devtools/client/shared/components/reps/constants");
@ -29,13 +29,13 @@ window.onload = Task.async(function* () {
const renderedRep = shallowRenderComponent(Rep, { object: gripStub });
is(renderedRep.type, Func.rep, `Rep correctly selects ${Func.rep.displayName}`);
yield testNamed();
yield testVarNamed();
yield testAnon();
yield testLongName();
yield testAsyncFunction();
yield testAnonAsyncFunction();
yield testGeneratorFunction();
testNamed();
testVarNamed();
testAnon();
testLongName();
testAsyncFunction();
testAnonAsyncFunction();
testGeneratorFunction();
} catch(e) {
ok(false, "Got an error: " + DevToolsUtils.safeErrorString(e));
} finally {
@ -386,7 +386,7 @@ window.onload = Task.async(function* () {
};
}
}
});
};
</script>
</pre>
</body>