Skip to content
Extraits de code Groupes Projets
Valider 1bce378f rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

forgot to push the new ui test method execCallback

parent 347d0cbf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -110,6 +110,10 @@ PageRenderer.prototype.evaluate = function (impl, waitTime) { ...@@ -110,6 +110,10 @@ PageRenderer.prototype.evaluate = function (impl, waitTime) {
this.queuedEvents.push([this._evaluate, waitTime, impl]); this.queuedEvents.push([this._evaluate, waitTime, impl]);
}; };
PageRenderer.prototype.execCallback = function (callback, waitTime) {
this.queuedEvents.push([this._execCallback, waitTime, callback]);
};
PageRenderer.prototype.downloadLink = function (selector, waitTime) { PageRenderer.prototype.downloadLink = function (selector, waitTime) {
this.queuedEvents.push([this._downloadLink, waitTime, selector]); this.queuedEvents.push([this._downloadLink, waitTime, selector]);
}; };
...@@ -277,6 +281,11 @@ PageRenderer.prototype._evaluate = function (impl, callback) { ...@@ -277,6 +281,11 @@ PageRenderer.prototype._evaluate = function (impl, callback) {
callback(); callback();
}; };
PageRenderer.prototype._execCallback = function (actualCallback, callback) {
actualCallback();
callback();
};
PageRenderer.prototype._downloadLink = function (str, callback) { PageRenderer.prototype._downloadLink = function (str, callback) {
var url = this.webpage.evaluate(function (selector) { var url = this.webpage.evaluate(function (selector) {
return $(selector).attr('href'); return $(selector).attr('href');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter