polyfills.location.origin.meta.json Maven / Gradle / Ivy
The newest version!
{"aliases":["default-3.4","default-3.5","default-3.6","default"],"browsers":{"ie":"6 - 10","ie_mob":"10","firefox":"<=20","safari":"<=6","ios_saf":"<=6","chrome":"<=29","firefox_mob":"<=20"},"dependencies":["Object.defineProperties"],"detectSource":"'location' in this && 'origin' in this.location","testSource":"","baseDir":"location/origin","hasTests":true,"testsSource":"/* eslint-env mocha, browser*/\n/* global proclaim, it */\n\nit('should be defined', function() {\n\tproclaim.notEqual(window.location.origin, undefined);\n});\n\nit('should include the protocol', function() {\n\tvar proto = window.location.protocol;\n\tproclaim.equal(window.location.origin.substr(0,proto.length), proto);\n});\n\nit('should include the hostname', function() {\n\tproclaim.include(window.location.origin, window.location.hostname);\n});\n\nit('should include the port', function() {\n\tproclaim.include(window.location.origin, window.location.port);\n});"}