"use strict";
/*global describe*/ // , it, assert*/

describe("constants", function () {
});

@@ -28,14 +28,8 @@
 ribe
-*/ // 
 , it
@@ -75,13 +75,1557 @@
 ion () %7B
+%0A%0A    describe(%22boot%22, function () %7B%0A%0A        it(%22should expose a version%22, function () %7B%0A            assert.equal(typeof gpf.version, %22function%22);%0A            assert.equal(typeof gpf.version(), %22string%22);%0A            var version = gpf.version();%0A            // Expected format MAJOR.MINOR%5Bd%5D%0A            assert.notEqual(version.indexOf(%22.%22), -1);%0A            assert.notEqual(version.match(/%5B0-9%5D+%5C.%5B0-9%5D+d?/), null);%0A        %7D);%0A%0A        it(%22should expose the host name%22, function () %7B%0A            assert.equal(typeof gpf.host, %22function%22);%0A            assert.equal(typeof gpf.host(), %22string%22);%0A            var host = gpf.host();%0A            // Must be one of these%0A            assert.notEqual(%5B%0A                %22wscript%22,%0A                %22phantomjs%22,%0A                %22nodejs%22,%0A                %22browser%22,%0A                %22unknown%22%0A            %5D.indexOf(host), -1);%0A        %7D);%0A%0A        it(%22should provide a context resolver%22, function () %7B%0A            assert.equal(typeof gpf.context, %22function%22);%0A            assert.notEqual(typeof gpf.context(), null);%0A            assert.equal(gpf.context(%22gpf%22), gpf);%0A            // Known and testable contexts%0A            if (gpf.host() === %22browser%22) %7B%0A                assert.equal(gpf.context(), window);%0A            %7D else if (gpf.host() === %22nodejs%22 %7C%7C gpf.host() === %22phantomjs%22) %7B%0A                assert.equal(gpf.context(), global);%0A            %7D else %7B%0A                assert.equal(gpf.context(),%0A                    (function () %7Breturn this;%7D).apply(null));%0A            %7D%0A        %7D);%0A%0A    %7D);%0A
 %0A%7D);%0A

Test GPF constants