mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Additional timeouts for CSS hot code push tests.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user