From 8906aada5f53cf941074f7b51a88819715fcb104 Mon Sep 17 00:00:00 2001 From: DD Liu Date: Thu, 3 Aug 2017 17:31:34 -0400 Subject: [PATCH] words better --- test/integration/hat-threads-run-every-frame.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/integration/hat-threads-run-every-frame.js b/test/integration/hat-threads-run-every-frame.js index 4f858c454..3f0fd2bf0 100644 --- a/test/integration/hat-threads-run-every-frame.js +++ b/test/integration/hat-threads-run-every-frame.js @@ -49,9 +49,8 @@ test('edge activated hat thread runs once every frame', t => { checkIsHatThread(t, vm, vm.runtime.threads[0]); t.assert(vm.runtime.threads[0].status === Thread.STATUS_DONE); - // Check that the hat thread is again when another step is taken + // Check that the hat thread is added again when another step is taken vm.runtime._step(); - // There should now be one done hat thread and one new hat thread to run t.equal(vm.runtime.threads.length, 1); checkIsHatThread(t, vm, vm.runtime.threads[0]); t.assert(vm.runtime.threads[0].status === Thread.STATUS_DONE); @@ -123,9 +122,8 @@ test('edge activated hat thread does not interrupt stack click thread', t => { // Add stack click thread on this hat vm.runtime.toggleScript(vm.runtime.threads[0].topBlock, {stackClick: true}); - // Check that the hat thread is again when another step is taken + // Check that the hat thread is added again when another step is taken vm.runtime._step(); - // There should now be one done hat thread and one new hat thread to run t.equal(vm.runtime.threads.length, 2); let hatThread; let stackClickThread; @@ -174,9 +172,8 @@ test('edge activated hat thread does not interrupt stack click thread', t => { // Add stack click thread on this hat vm.runtime.toggleScript(vm.runtime.threads[0].topBlock, {stackClick: true}); - // Check that the hat thread is again when another step is taken + // Check that the hat thread is added again when another step is taken vm.runtime._step(); - // There should now be one done hat thread and one new hat thread to run t.equal(vm.runtime.threads.length, 2); let hatThread; let stackClickThread;