mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix the hot code push tests by adding packages
This commit is contained in:
@@ -4,6 +4,4 @@
|
||||
# but you can also edit it by hand.
|
||||
|
||||
meteor-base
|
||||
autopublish
|
||||
insecure
|
||||
jquery
|
||||
|
||||
@@ -50,7 +50,9 @@ selftest.define("css hot code push", function (options) {
|
||||
run.match("numCssChanges: 3");
|
||||
run.match(/background-color: (transparent|rgba\(0, 0, 0, 0\))/);
|
||||
|
||||
s.write(".meteor/packages", "standard-app-packages \n my-package");
|
||||
s.write(".meteor/packages", `meteor-base
|
||||
jquery
|
||||
my-package`);
|
||||
run.match(/my-package.*added,/);
|
||||
run.match("client connected");
|
||||
run.match("numCssChanges: 0");
|
||||
@@ -60,7 +62,10 @@ selftest.define("css hot code push", function (options) {
|
||||
run.match(/background-color: (blue|rgb\(0, 0, 255\))/);
|
||||
|
||||
// Add appcache and ensure that the browser still reloads.
|
||||
s.write(".meteor/packages", "standard-app-packages \n my-package \n appcache");
|
||||
s.write(".meteor/packages", `meteor-base
|
||||
jquery
|
||||
my-package
|
||||
appcache`);
|
||||
run.match(/appcache.*added,/);
|
||||
run.match("server restarted");
|
||||
run.match("numCssChanges: 0");
|
||||
@@ -76,7 +81,8 @@ selftest.define("css hot code push", function (options) {
|
||||
// like there's a race and we see a weird state
|
||||
utils.sleepMs(10000);
|
||||
|
||||
s.write(".meteor/packages", "standard-app-packages");
|
||||
s.write(".meteor/packages", `meteor-base
|
||||
jquery`);
|
||||
run.match(/my-package.*removed from your project/);
|
||||
run.match("numCssChanges: 0");
|
||||
run.match(/background-color: (transparent|rgba\(0, 0, 0, 0\))/);
|
||||
@@ -193,7 +199,9 @@ selftest.define("javascript hot code push", function (options) {
|
||||
run.match("client connected: 1");
|
||||
run.match("jsVar: undefined");
|
||||
|
||||
s.write(".meteor/packages", "meteor-base \n my-package");
|
||||
s.write(".meteor/packages", `meteor-base
|
||||
session
|
||||
my-package`);
|
||||
run.match(/my-package.*added,/);
|
||||
run.match("server restarted");
|
||||
run.match("client connected: 0");
|
||||
@@ -206,7 +214,9 @@ selftest.define("javascript hot code push", function (options) {
|
||||
run.match("packageVar: bar");
|
||||
|
||||
// Add appcache and ensure that the browser still reloads.
|
||||
s.write(".meteor/packages", "meteor-base \n appcache");
|
||||
s.write(".meteor/packages", `meteor-base
|
||||
session
|
||||
appcache`);
|
||||
run.match(/appcache.*added,/);
|
||||
run.match("server restarted");
|
||||
run.match("client connected: 0");
|
||||
@@ -222,7 +232,8 @@ selftest.define("javascript hot code push", function (options) {
|
||||
run.match("jsVar: bar");
|
||||
|
||||
// Remove appcache and ensure that the browser still reloads.
|
||||
s.write(".meteor/packages", "meteor-base");
|
||||
s.write(".meteor/packages", `meteor-base
|
||||
session`);
|
||||
run.match(/appcache.*removed from your project/);
|
||||
run.match("server restarted");
|
||||
run.match("client connected: 0");
|
||||
|
||||
Reference in New Issue
Block a user