Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten up forbidden dep tests. #3155

Merged
merged 1 commit into from
May 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/3p.js → 3p/3p.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
// Note: loaded by 3p system. Cannot rely on babel polyfills.


import {dev, user} from './log';
import {isArray} from './types';
import {rethrowAsync} from './log';
import {dev, user} from '../src/log';
import {isArray} from '../src/types';
import {rethrowAsync} from '../src/log';


/** @typedef {function(!Window, !Object)} */
Expand Down
2 changes: 1 addition & 1 deletion 3p/facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript} from '../src/3p';
import {loadScript} from './3p';
import {user} from '../src/log';


Expand Down
2 changes: 1 addition & 1 deletion 3p/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {mediaimpact} from '../ads/mediaimpact';
import {nonSensitiveDataPostMessage, listenParent} from './messaging';
import {twitter} from './twitter';
import {yieldmo} from '../ads/yieldmo';
import {computeInMasterFrame, nextTick, register, run} from '../src/3p';
import {computeInMasterFrame, nextTick, register, run} from './3p';
import {parseUrl, getSourceUrl} from '../src/url';
import {appnexus} from '../ads/appnexus';
import {taboola} from '../ads/taboola';
Expand Down
2 changes: 1 addition & 1 deletion 3p/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// TODO(malteubl) Move somewhere else since this is not an ad.

import {computeInMasterFrame, loadScript} from '../src/3p';
import {computeInMasterFrame, loadScript} from './3p';

/**
* Produces the Twitter API object for the passed in callback. If the current
Expand Down
2 changes: 1 addition & 1 deletion ads/a9.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData} from '../src/3p';
import {writeScript, checkData} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/adblade.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData, validateDataExists} from '../src/3p';
import {writeScript, checkData, validateDataExists} from '../3p/3p';

const adbladeFields = ['width', 'height', 'cid'];
const adbladeHostname = 'web.adblade.com';
Expand Down
2 changes: 1 addition & 1 deletion ads/adform.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, validateSrcPrefix, validateExactlyOne} from '../src/3p';
import {writeScript, validateSrcPrefix, validateExactlyOne} from '../3p/3p';

// Valid adform ad source hosts
const hosts = {
Expand Down
2 changes: 1 addition & 1 deletion ads/adition.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, validateDataExists} from '../src/3p';
import {writeScript, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/adman.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {checkData, validateDataExists} from '../src/3p';
import {checkData, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/adreactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData} from '../src/3p';
import {writeScript, checkData} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/adstir.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData} from '../src/3p';
import {loadScript, checkData} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/adtech.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, validateSrcPrefix, validateSrcContains} from '../src/3p';
import {writeScript, validateSrcPrefix, validateSrcContains} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/aduptech.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData, validateDataExists} from '../src/3p';
import {loadScript, checkData, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/appnexus.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import {
loadScript, writeScript, validateDataExists,
}
from '../src/3p';
from '../3p/3p';

const APPNEXUS_AST_URL = 'https://acdn.adnxs.com/ast/ast.js';

Expand Down
2 changes: 1 addition & 1 deletion ads/colombia.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, validateDataExists} from '../src/3p';
import {loadScript, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/criteo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript} from '../src/3p';
import {loadScript} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/dotandads.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript} from '../src/3p';
import {writeScript} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/eplanning.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, validateDataExists} from '../src/3p';
import {loadScript, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/flite.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData} from '../src/3p';
import {loadScript, checkData} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/gmossp.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData, validateDataExists} from '../src/3p';
import {writeScript, checkData, validateDataExists} from '../3p/3p';

const gmosspFields = ['width', 'height', 'id'];

Expand Down
2 changes: 1 addition & 1 deletion ads/google/adsense.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {checkData} from '../../src/3p';
import {checkData} from '../../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/google/doubleclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData} from '../../src/3p';
import {loadScript, checkData} from '../../3p/3p';
import {getCorrelator} from './utils';

/**
Expand Down
2 changes: 1 addition & 1 deletion ads/imobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript} from '../src/3p';
import {writeScript} from '../3p/3p';
/**
* @param {!Window} global
* @param {!Object} data
Expand Down
2 changes: 1 addition & 1 deletion ads/improvedigital.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {writeScript, checkData, validateDataExists} from '../src/3p';
import {writeScript, checkData, validateDataExists} from '../3p/3p';

const adImproveField = ['width', 'height', 'placement', 'optin', 'keyvalue'];
const adImproveMandatoryField = ['placement'];
Expand Down
2 changes: 1 addition & 1 deletion ads/mantis.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData, validateDataExists} from '../src/3p';
import {loadScript, checkData, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/mediaimpact.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript} from '../src/3p';
import {loadScript} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/openadstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {checkData, validateDataExists, writeScript} from '../src/3p';
import {checkData, validateDataExists, writeScript} from '../3p/3p';


/**
Expand Down
2 changes: 1 addition & 1 deletion ads/openx.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, writeScript, checkData} from '../src/3p';
import {loadScript, writeScript, checkData} from '../3p/3p';
import {doubleclick} from '../ads/google/doubleclick';

/**
Expand Down
2 changes: 1 addition & 1 deletion ads/plista.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData} from '../src/3p';
import {loadScript, checkData} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/pubmatic.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript} from '../src/3p';
import {loadScript} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/revcontent.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData} from '../src/3p';
import {writeScript, checkData} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/rubicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, loadScript, checkData} from '../src/3p';
import {writeScript, loadScript, checkData} from '../3p/3p';
import {getSourceUrl} from '../src/url';
import {doubleclick} from '../ads/google/doubleclick';

Expand Down
2 changes: 1 addition & 1 deletion ads/sharethrough.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData, validateDataExists} from '../src/3p';
import {writeScript, checkData, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/smartadserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript} from '../src/3p';
import {loadScript} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, validateDataExists} from '../src/3p';
import {loadScript, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/sovrn.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* New customers please see www.sovrn.com to sign up and get started!
*********
*/
import {writeScript} from '../src/3p';
import {writeScript} from '../3p/3p';
/**
* @param {!Window} global
* @param {!Object} data
Expand Down
2 changes: 1 addition & 1 deletion ads/taboola.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, validateDataExists, validateExactlyOne} from '../src/3p';
import {loadScript, validateDataExists, validateExactlyOne} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/teads.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData, validateDataExists} from '../src/3p';
import {loadScript, checkData, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/triplelift.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, validateSrcPrefix} from '../src/3p';
import {loadScript, validateSrcPrefix} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/webediads.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript, checkData, validateDataExists} from '../src/3p';
import {loadScript, checkData, validateDataExists} from '../3p/3p';

/** Created by Webedia on 07/03/16 */
export function webediads(global, data) {
Expand Down
2 changes: 1 addition & 1 deletion ads/weborama.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {writeScript, checkData, validateDataExists} from '../src/3p';
import {writeScript, checkData, validateDataExists} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
2 changes: 1 addition & 1 deletion ads/yieldbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {validateDataExists, checkData, loadScript} from '../src/3p';
import {validateDataExists, checkData, loadScript} from '../3p/3p';
import {doubleclick} from '../ads/google/doubleclick';
import {rethrowAsync} from '../src/log';

Expand Down
2 changes: 1 addition & 1 deletion ads/yieldmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {loadScript} from '../src/3p';
import {loadScript} from '../3p/3p';

/**
* @param {!Window} global
Expand Down
Loading