Additional timeouts for CSS hot code push tests.

This commit is contained in:
Ben Newman
2017-06-22 14:06:53 -04:00
committed by Ben Newman
parent 355558d28a
commit 42526ea5a8

View File

@@ -55,6 +55,7 @@ jquery
my-package`);
run.match(/my-package.*added,/);
run.match("client connected");
run.waitSecs(45);
run.match("numCssChanges: 0");
s.write("packages/my-package/foo.css", "body { background-color: blue; }");
@@ -70,11 +71,13 @@ appcache`);
run.match("server restarted");
run.match("numCssChanges: 0");
run.match(/background-color: (blue|rgb\(0, 0, 255\))/);
run.waitSecs(30);
s.write("packages/my-package/foo.css", "body { background-color: red; }");
run.match("Client modified -- refreshing");
run.match("numCssChanges: 1");
run.match(/background-color: (red|rgb\(255, 0, 0\))/);
run.waitSecs(20);
// XXX: Remove me. This shouldn't be needed, but sometimes
// if we run too quickly on fast (or Linux?) machines, it looks
@@ -86,6 +89,7 @@ jquery`);
run.match(/my-package.*removed from your project/);
run.match("numCssChanges: 0");
run.match(/background-color: (transparent|rgba\(0, 0, 0, 0\))/);
run.waitSecs(30);
run.stop();
});