vpaid-html5-client
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -133,3 +133,3 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
*/ | ||
IVPAIDAdUnit.prototype.resizeAd = function(callback) {}; | ||
IVPAIDAdUnit.prototype.resizeAd = function(width, height, viewMode, callback) {}; | ||
@@ -136,0 +136,0 @@ /** |
{ | ||
"name": "VPAIDHTML5Client", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"homepage": "https://github.com/MailOnline/VPAIDHTML5Client", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -132,3 +132,3 @@ 'use strict'; | ||
*/ | ||
IVPAIDAdUnit.prototype.resizeAd = function(callback) {}; | ||
IVPAIDAdUnit.prototype.resizeAd = function(width, height, viewMode, callback) {}; | ||
@@ -135,0 +135,0 @@ /** |
{ | ||
"name": "vpaid-html5-client", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "VPAID HTML5", | ||
@@ -5,0 +5,0 @@ "main": [ |
@@ -108,2 +108,14 @@ 'use strict'; | ||
it.only('must call callback after resizeAd is called', function(done) { | ||
var callback = sinon.spy(function() { | ||
done(); | ||
}); | ||
vpaid = createAndLoad(function(adUnit) { | ||
adUnit.subscribe('AdStarted', function(msg) { | ||
adUnit.resizeAd(300, 200, 'normal', callback) | ||
}); | ||
adUnit.startAd(); | ||
}); | ||
}); | ||
}) | ||
@@ -110,0 +122,0 @@ }); |
Sorry, the diff of this file is not supported yet
143077
3074