Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gemini-gui

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-gui - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

CHANGELOG.md
# Changelog
## 0.1.2 - 2014-10-24
* Work with `gemini` 0.9.x
## 0.1.1 - 2014-10-01

@@ -4,0 +8,0 @@

2

lib/find-gemini.js

@@ -7,3 +7,3 @@ 'use strict';

COMPATIBLE_GEMINI = '0.8.x';
COMPATIBLE_GEMINI = '0.8.x || 0.9.x';

@@ -10,0 +10,0 @@ module.exports = function findGemini() {

@@ -1,1 +0,1 @@

{"version":3,"file":"bundle.js","sources":["node_modules/browserify/node_modules/browser-pack/_prelude.js","lib/client","lib/client/section-list.js","lib/client/xhr.js","lib/client/section.js","lib/common/tests-index.js","lib/views/partials/success-result.hbs","lib/views/partials/fail-result.hbs","lib/views/partials/error-result.hbs","lib/views/partials/skip-result.hbs","node_modules/hbsfy/runtime.js","node_modules/handlebars/runtime.js","node_modules/handlebars/dist/cjs/handlebars.runtime.js","node_modules/handlebars/dist/cjs/handlebars/base.js","node_modules/handlebars/dist/cjs/handlebars/runtime.js","node_modules/handlebars/dist/cjs/handlebars/exception.js","node_modules/handlebars/dist/cjs/handlebars/safe-string.js","node_modules/handlebars/dist/cjs/handlebars/utils.js"],"names":["SectionList","this","_sectionsIndex","Index","_sections","map","call","document","querySelectorAll","node","section","Section","add","require","Array","prototype","every","constuctor","expandAll","forEach","expand","collapseAll","collapse","expandErrors","expandIfError","markAllAsQueued","status","markIfFinished","nodes","domNode","allChildrenFinished","_sectionForNode","isFinished","findSection","query","find","findParent","browserId","suiteId","stateName","parentSectionNode","_findParentSectionNode","parentNode","classList","contains","getAttribute","module","exports","post","url","data","callback","xhr","XMLHttpRequest","open","setRequestHeader","onload","JSON","parse","responseText","Error","error","send","stringify","statusClass","getInitialStatus","sectionNode","i","statusList","length","_status","_titleNode","querySelector","_bodyNode","addEventListener","toggle","bind","successTemplate","failTemplate","errorTemplate","skipTemplate","remove",{"end":{"file":"?","comments_before":[],"nlb":false,"endpos":1552,"pos":1546,"col":8,"line":57,"value":"status","type":"name"},"start":{"file":"?","comments_before":[],"nlb":false,"endpos":1552,"pos":1546,"col":8,"line":57,"value":"status","type":"name"},"name":"status"},"value","setAsFailure","results","innerHTML","replaceButton","updateReference","setAsSuccess","setAsSkipped","setAsError","_this","postData","response","TestsIndex","_index","constructor","item","indexData","suite","states","stateData","state","browsers","HandlebarsCompiler","template","Handlebars","depth0","helpers","partials","compilerInfo","merge","stack1","helper","buffer","functionType","escapeExpression","referenceURL","hash","currentURL","diffURL","stack","base","SafeString","Exception","Utils","runtime","create","hb","HandlebarsEnvironment","extend","VM","spec","registerDefaultHelpers","instance","registerHelper","arg","arguments","undefined","context","options","inverse","fn","isFunction","isArray","each","ret","createFrame","j","index","first","last","key","hasOwnProperty","conditional","includeZero","isEmpty","level","parseInt","log","obj","logger","VERSION","COMPILER_REVISION","REVISION_CHANGES",1,2,3,4,"toString","objectType","name","not","registerPartial","str","methodMap","DEBUG","INFO","WARN","ERROR","method","console","object","checkRevision","compilerRevision","currentRevision","runtimeVersions","compilerVersions","templateSpec","env","invokePartialWrapper","partial","result","invokePartial","apply","compile","container","programs","program","programWrapper","param","common","programWithDepth","noop","namespace","args","slice","prog","concat","depth","Function","message","line","firstLine","firstColumn","tmp","idx","errorProps","lineNumber","column","string","escapeChar","chr","escape","Object","possible","test","replace","badChars","&","<",">","\"","'","`"],"mappings":"AAAA;AECA,YAMA,SAASA,eACLC,KAAKC,eAAiB,GAAIC,OAC1BF,KAAKG,UAAYC,IAAIC,KAAKC,SAASC,iBAAiB,YAAa,SAASC,GACtE,GAAIC,GAAU,GAAIC,SAAQF,EAE1B,OADAR,MAAKC,eAAeU,IAAIF,GACjBA,GACRT,MAXP,GAAIU,SAAUE,QAAQ,aACl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OAAOC,QAAUlC,QAAQ;;ADFzBiC,OAAOC,QAAUlC,QAAQ,sBAAsB","sourcesContent":["(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})","\"use strict\";function failAllParents(e){for(;e=sections.findParent(e);)e.status=\"fail\",e.expand()}function listenForEvents(){var e=new EventSource(\"/events\");e.addEventListener(\"beginSuite\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId});\"queued\"===n.status&&(n.status=\"running\")}),e.addEventListener(\"beginState\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName});\"queued\"===n.status&&(n.status=\"running\")}),e.addEventListener(\"endTest\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});t.equal?n.setAsSuccess(t):(n.setAsFailure(t),n.expand(),failAllParents(n))}),e.addEventListener(\"skipState\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});n.setAsSkipped();var s=sections.findSection({suiteId:t.suiteId,stateName:t.stateName});sections.markIfFinished(s)}),e.addEventListener(\"error\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});n.setAsError({stack:t.stack}),n.expand(),failAllParents(n)}),e.addEventListener(\"endState\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName});sections.markIfFinished(n)}),e.addEventListener(\"endSuite\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});sections.markIfFinished(n)}),e.addEventListener(\"end\",function(){runButton.disabled=!1})}function run(){runButton.disabled=!0,xhr.post(\"/run\",function(e){e||sections.markAllAsQueued()})}var SectionList=require(\"./section-list\"),xhr=require(\"./xhr\"),byId=document.getElementById.bind(document),runButton,sections;document.addEventListener(\"DOMContentLoaded\",function(){sections=new SectionList,runButton=byId(\"run\"),listenForEvents(),byId(\"expandAll\").addEventListener(\"click\",sections.expandAll.bind(sections)),byId(\"collapseAll\").addEventListener(\"click\",sections.collapseAll.bind(sections)),byId(\"expandErrors\").addEventListener(\"click\",sections.expandErrors.bind(sections)),runButton.addEventListener(\"click\",run)});","/*jshint browser:true*/\n'use strict';\nvar Section = require('./section'),\n Index = require('../common/tests-index'),\n map = Array.prototype.map,\n every = Array.prototype.every;\n\nfunction SectionList() {\n this._sectionsIndex = new Index();\n this._sections = map.call(document.querySelectorAll('.section'), function(node) {\n var section = new Section(node);\n this._sectionsIndex.add(section);\n return section;\n }, this);\n}\n\nSectionList.prototype = {\n constuctor: SectionList,\n\n expandAll: function() {\n this._sections.forEach(function(section) {\n section.expand();\n });\n },\n\n collapseAll: function() {\n this._sections.forEach(function(section) {\n section.collapse();\n });\n },\n\n expandErrors: function() {\n this._sections.forEach(function(section) {\n section.expandIfError();\n });\n },\n\n markAllAsQueued: function() {\n this._sections.forEach(function(section) {\n section.status = 'queued';\n });\n },\n\n markIfFinished: function(section) {\n if (section.status === 'fail') {\n //already marked as fail\n return;\n }\n var nodes = section.domNode.querySelectorAll('.section');\n var allChildrenFinished = every.call(nodes, function(node) {\n return this._sectionForNode(node).isFinished();\n }, this);\n\n if (allChildrenFinished) {\n section.status = 'success';\n }\n },\n\n findSection: function(query) {\n return this._sectionsIndex.find(query);\n },\n\n findParent: function(section) {\n if (section.browserId) {\n return this.findSection({suiteId: section.suiteId, stateName: section.stateName});\n }\n\n if (section.stateName) {\n return this.findSection({suiteId: section.suiteId});\n }\n var parentSectionNode = this._findParentSectionNode(section.domNode);\n if (parentSectionNode) {\n return this._sectionForNode(parentSectionNode);\n }\n return null;\n },\n\n _findParentSectionNode: function(node) {\n while ((node = node.parentNode)) {\n if (node.classList && node.classList.contains('section')) {\n return node;\n }\n }\n return null;\n },\n\n _sectionForNode: function(domNode) {\n var query = {\n suiteId: domNode.getAttribute('data-suite-id'),\n stateName: domNode.getAttribute('data-state-name'),\n browserId: domNode.getAttribute('data-browser-id')\n };\n\n return this.findSection(query);\n }\n};\n\nmodule.exports = SectionList;\n","/*jshint browser:true*/\n'use strict';\n\nexports.post = function(url, data, callback) {\n if (!callback) {\n callback = data;\n data = null;\n }\n var xhr = new XMLHttpRequest();\n xhr.open('POST', url, true);\n xhr.setRequestHeader('Content-Type', 'application/json');\n xhr.onload = function() {\n var data = JSON.parse(xhr.responseText);\n if (xhr.status === 200) {\n callback(null, data);\n } else {\n callback(new Error(data.error));\n }\n };\n\n if (data) {\n xhr.send(JSON.stringify(data));\n } else {\n xhr.send();\n }\n};\n","'use strict';\nvar successTemplate = require('../views/partials/success-result.hbs'),\n failTemplate = require('../views/partials/fail-result.hbs'),\n errorTemplate = require('../views/partials/error-result.hbs'),\n skipTemplate = require('../views/partials/skip-result.hbs'),\n xhr = require('./xhr');\n\nvar statusList = [\n 'idle',\n 'queued',\n 'running',\n 'success',\n 'fail',\n 'skip'\n];\n\nfunction statusClass(status) {\n return 'section_status_' + status;\n}\n\nfunction getInitialStatus(sectionNode) {\n var status;\n for (var i = 0; i< statusList.length; i++) {\n status = statusList[i];\n if (sectionNode.classList.contains(statusClass(status))) {\n return status;\n }\n }\n return null;\n}\n\nfunction Section(node) {\n this.suiteId = node.getAttribute('data-suite-id');\n this.stateName = node.getAttribute('data-state-name');\n this.browserId = node.getAttribute('data-browser-id');\n this.domNode = node;\n this._status = getInitialStatus(node);\n this._titleNode = node.querySelector('.section__title');\n this._bodyNode = node.querySelector('.section__body');\n this._titleNode.addEventListener('click', this.toggle.bind(this));\n}\n\nSection.prototype = {\n constuctor: Section,\n expand:function() {\n this.domNode.classList.remove('section_collapsed');\n },\n\n collapse: function() {\n this.domNode.classList.add('section_collapsed');\n },\n\n toggle: function() {\n this.domNode.classList.toggle('section_collapsed');\n },\n\n get status() {\n return this._status;\n },\n\n set status(value) {\n if (this._status) {\n this.domNode.classList.remove(statusClass(this._status));\n }\n\n this._status = value;\n this.domNode.classList.add(statusClass(this._status));\n },\n\n expandIfError: function() {\n if (this.status === 'fail') {\n this.expand();\n } else {\n this.collapse();\n }\n },\n\n setAsFailure: function(results) {\n this.status = 'fail';\n this._bodyNode.innerHTML = failTemplate(results);\n var replaceButton = this._bodyNode.querySelector('.image-box__replace');\n replaceButton.addEventListener('click', this.updateReference.bind(this));\n },\n\n setAsSuccess: function(results) {\n this.status = 'success';\n this._bodyNode.innerHTML = successTemplate(results);\n },\n\n setAsSkipped: function() {\n this.status = 'skipped';\n this._bodyNode.innerHTML = skipTemplate();\n },\n\n setAsError: function(error) {\n this.status = 'fail';\n this._bodyNode.innerHTML = errorTemplate(error);\n },\n\n isFinished: function() {\n return this.status !== 'queued' &&\n this.status !== 'running';\n },\n\n updateReference: function() {\n var _this = this,\n postData = {\n suiteId: this.suiteId,\n stateName: this.stateName,\n browserId: this.browserId\n };\n xhr.post('/update-ref', postData, function(error, response) {\n if (!error) {\n _this.setAsSuccess(response);\n }\n });\n }\n};\n\nmodule.exports = Section;\n","'use strict';\n\nfunction TestsIndex() {\n this._index = {};\n}\n\nTestsIndex.prototype = {\n constructor: TestsIndex,\n\n add: function(item) {\n if (item.suiteId == null) {\n return;\n }\n\n var indexData = this._index[item.suiteId];\n if (!indexData) {\n indexData = this._index[item.suiteId] = {\n suite: null,\n states: {}\n };\n }\n\n if (item.stateName == null) {\n indexData.suite = item;\n return;\n }\n\n var stateData = indexData.states[item.stateName];\n if (!stateData) {\n stateData = indexData.states[item.stateName] = {\n state: null,\n browsers: {}\n };\n }\n\n if (item.browserId == null) {\n stateData.state = item;\n return;\n }\n stateData.browsers[item.browserId] = item;\n },\n\n find: function(query) {\n var indexData = this._index[query.suiteId];\n if (!indexData) {\n return null;\n }\n if (query.stateName == null) {\n return indexData.suite;\n }\n var stateData = indexData.states[query.stateName];\n if (!stateData) {\n return null;\n }\n\n if (query.browserId == null) {\n return stateData.state;\n }\n\n return stateData.browsers[query.browserId] || null;\n }\n};\n\nmodule.exports = TestsIndex;\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n var buffer = \"\", stack1, helper, functionType=\"function\", escapeExpression=this.escapeExpression;\n\n\n buffer += \"<div class=\\\"image-box\\\">\\n <div class=\\\"image-box__image\\\">\\n <img src=\\\"\";\n if (helper = helpers.referenceURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.referenceURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Reference image\\\">\\n </div>\\n</div>\\n\";\n return buffer;\n });\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n var buffer = \"\", stack1, helper, functionType=\"function\", escapeExpression=this.escapeExpression;\n\n\n buffer += \"<div class=\\\"image-box\\\">\\n <div class=\\\"image-box__image\\\">\\n <div class=\\\"image-box__title\\\">Reference</div>\\n <img src=\\\"\";\n if (helper = helpers.referenceURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.referenceURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Reference image\\\">\\n </div>\\n <button class=\\\"button image-box__replace\\\">&#x2b05;</button>\\n <div class=\\\"image-box__image\\\">\\n <div class=\\\"image-box__title\\\">Current</div>\\n <img src=\\\"\";\n if (helper = helpers.currentURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.currentURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Current image\\\">\\n </div>\\n <div class=\\\"image-box__image\\\">\\n <div class=\\\"image-box__title\\\">Diff</div>\\n <img src=\\\"\";\n if (helper = helpers.diffURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.diffURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Diff image\\\">\\n </div>\\n</div>\\n\";\n return buffer;\n });\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n var buffer = \"\", stack1, helper, functionType=\"function\", escapeExpression=this.escapeExpression;\n\n\n buffer += \"<pre class=\\\"stacktrace\\\">\\n\";\n if (helper = helpers.stack) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.stack); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\n</pre>\\n\";\n return buffer;\n });\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n \n\n\n return \"<p>Test skipped</p>\\n\";\n });\n","module.exports = require(\"handlebars/runtime\")[\"default\"];\n","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime');\n","\"use strict\";\n/*globals Handlebars: true */\nvar base = require(\"./handlebars/base\");\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\nvar SafeString = require(\"./handlebars/safe-string\")[\"default\"];\nvar Exception = require(\"./handlebars/exception\")[\"default\"];\nvar Utils = require(\"./handlebars/utils\");\nvar runtime = require(\"./handlebars/runtime\");\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nvar create = function() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = SafeString;\n hb.Exception = Exception;\n hb.Utils = Utils;\n\n hb.VM = runtime;\n hb.template = function(spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n};\n\nvar Handlebars = create();\nHandlebars.create = create;\n\nexports[\"default\"] = Handlebars;","\"use strict\";\nvar Utils = require(\"./utils\");\nvar Exception = require(\"./exception\")[\"default\"];\n\nvar VERSION = \"1.3.0\";\nexports.VERSION = VERSION;var COMPILER_REVISION = 4;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '>= 1.0.0'\n};\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar isArray = Utils.isArray,\n isFunction = Utils.isFunction,\n toString = Utils.toString,\n objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n\n registerDefaultHelpers(this);\n}\n\nexports.HandlebarsEnvironment = HandlebarsEnvironment;HandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: logger,\n log: log,\n\n registerHelper: function(name, fn, inverse) {\n if (toString.call(name) === objectType) {\n if (inverse || fn) { throw new Exception('Arg not supported with multiple helpers'); }\n Utils.extend(this.helpers, name);\n } else {\n if (inverse) { fn.not = inverse; }\n this.helpers[name] = fn;\n }\n },\n\n registerPartial: function(name, str) {\n if (toString.call(name) === objectType) {\n Utils.extend(this.partials, name);\n } else {\n this.partials[name] = str;\n }\n }\n};\n\nfunction registerDefaultHelpers(instance) {\n instance.registerHelper('helperMissing', function(arg) {\n if(arguments.length === 2) {\n return undefined;\n } else {\n throw new Exception(\"Missing helper: '\" + arg + \"'\");\n }\n });\n\n instance.registerHelper('blockHelperMissing', function(context, options) {\n var inverse = options.inverse || function() {}, fn = options.fn;\n\n if (isFunction(context)) { context = context.call(this); }\n\n if(context === true) {\n return fn(this);\n } else if(context === false || context == null) {\n return inverse(this);\n } else if (isArray(context)) {\n if(context.length > 0) {\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n return fn(context);\n }\n });\n\n instance.registerHelper('each', function(context, options) {\n var fn = options.fn, inverse = options.inverse;\n var i = 0, ret = \"\", data;\n\n if (isFunction(context)) { context = context.call(this); }\n\n if (options.data) {\n data = createFrame(options.data);\n }\n\n if(context && typeof context === 'object') {\n if (isArray(context)) {\n for(var j = context.length; i<j; i++) {\n if (data) {\n data.index = i;\n data.first = (i === 0);\n data.last = (i === (context.length-1));\n }\n ret = ret + fn(context[i], { data: data });\n }\n } else {\n for(var key in context) {\n if(context.hasOwnProperty(key)) {\n if(data) { \n data.key = key; \n data.index = i;\n data.first = (i === 0);\n }\n ret = ret + fn(context[key], {data: data});\n i++;\n }\n }\n }\n }\n\n if(i === 0){\n ret = inverse(this);\n }\n\n return ret;\n });\n\n instance.registerHelper('if', function(conditional, options) {\n if (isFunction(conditional)) { conditional = conditional.call(this); }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if ((!options.hash.includeZero && !conditional) || Utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function(conditional, options) {\n return instance.helpers['if'].call(this, conditional, {fn: options.inverse, inverse: options.fn, hash: options.hash});\n });\n\n instance.registerHelper('with', function(context, options) {\n if (isFunction(context)) { context = context.call(this); }\n\n if (!Utils.isEmpty(context)) return options.fn(context);\n });\n\n instance.registerHelper('log', function(context, options) {\n var level = options.data && options.data.level != null ? parseInt(options.data.level, 10) : 1;\n instance.log(level, context);\n });\n}\n\nvar logger = {\n methodMap: { 0: 'debug', 1: 'info', 2: 'warn', 3: 'error' },\n\n // State enum\n DEBUG: 0,\n INFO: 1,\n WARN: 2,\n ERROR: 3,\n level: 3,\n\n // can be overridden in the host environment\n log: function(level, obj) {\n if (logger.level <= level) {\n var method = logger.methodMap[level];\n if (typeof console !== 'undefined' && console[method]) {\n console[method].call(console, obj);\n }\n }\n }\n};\nexports.logger = logger;\nfunction log(level, obj) { logger.log(level, obj); }\n\nexports.log = log;var createFrame = function(object) {\n var obj = {};\n Utils.extend(obj, object);\n return obj;\n};\nexports.createFrame = createFrame;","\"use strict\";\nvar Utils = require(\"./utils\");\nvar Exception = require(\"./exception\")[\"default\"];\nvar COMPILER_REVISION = require(\"./base\").COMPILER_REVISION;\nvar REVISION_CHANGES = require(\"./base\").REVISION_CHANGES;\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = COMPILER_REVISION;\n\n if (compilerRevision !== currentRevision) {\n if (compilerRevision < currentRevision) {\n var runtimeVersions = REVISION_CHANGES[currentRevision],\n compilerVersions = REVISION_CHANGES[compilerRevision];\n throw new Exception(\"Template was precompiled with an older version of Handlebars than the current runtime. \"+\n \"Please update your precompiler to a newer version (\"+runtimeVersions+\") or downgrade your runtime to an older version (\"+compilerVersions+\").\");\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new Exception(\"Template was precompiled with a newer version of Handlebars than the current runtime. \"+\n \"Please update your runtime to a newer version (\"+compilerInfo[1]+\").\");\n }\n }\n}\n\nexports.checkRevision = checkRevision;// TODO: Remove this line and break up compilePartial\n\nfunction template(templateSpec, env) {\n if (!env) {\n throw new Exception(\"No environment passed to template\");\n }\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as psuedo-supported APIs.\n var invokePartialWrapper = function(partial, name, context, helpers, partials, data) {\n var result = env.VM.invokePartial.apply(this, arguments);\n if (result != null) { return result; }\n\n if (env.compile) {\n var options = { helpers: helpers, partials: partials, data: data };\n partials[name] = env.compile(partial, { data: data !== undefined }, env);\n return partials[name](context, options);\n } else {\n throw new Exception(\"The partial \" + name + \" could not be compiled when running in runtime-only mode\");\n }\n };\n\n // Just add water\n var container = {\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n programs: [],\n program: function(i, fn, data) {\n var programWrapper = this.programs[i];\n if(data) {\n programWrapper = program(i, fn, data);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = program(i, fn);\n }\n return programWrapper;\n },\n merge: function(param, common) {\n var ret = param || common;\n\n if (param && common && (param !== common)) {\n ret = {};\n Utils.extend(ret, common);\n Utils.extend(ret, param);\n }\n return ret;\n },\n programWithDepth: env.VM.programWithDepth,\n noop: env.VM.noop,\n compilerInfo: null\n };\n\n return function(context, options) {\n options = options || {};\n var namespace = options.partial ? options : env,\n helpers,\n partials;\n\n if (!options.partial) {\n helpers = options.helpers;\n partials = options.partials;\n }\n var result = templateSpec.call(\n container,\n namespace, context,\n helpers,\n partials,\n options.data);\n\n if (!options.partial) {\n env.VM.checkRevision(container.compilerInfo);\n }\n\n return result;\n };\n}\n\nexports.template = template;function programWithDepth(i, fn, data /*, $depth */) {\n var args = Array.prototype.slice.call(arguments, 3);\n\n var prog = function(context, options) {\n options = options || {};\n\n return fn.apply(this, [context, options.data || data].concat(args));\n };\n prog.program = i;\n prog.depth = args.length;\n return prog;\n}\n\nexports.programWithDepth = programWithDepth;function program(i, fn, data) {\n var prog = function(context, options) {\n options = options || {};\n\n return fn(context, options.data || data);\n };\n prog.program = i;\n prog.depth = 0;\n return prog;\n}\n\nexports.program = program;function invokePartial(partial, name, context, helpers, partials, data) {\n var options = { partial: true, helpers: helpers, partials: partials, data: data };\n\n if(partial === undefined) {\n throw new Exception(\"The partial \" + name + \" could not be found\");\n } else if(partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nexports.invokePartial = invokePartial;function noop() { return \"\"; }\n\nexports.noop = noop;","\"use strict\";\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var line;\n if (node && node.firstLine) {\n line = node.firstLine;\n\n message += ' - ' + line + ':' + node.firstColumn;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n if (line) {\n this.lineNumber = line;\n this.column = node.firstColumn;\n }\n}\n\nException.prototype = new Error();\n\nexports[\"default\"] = Exception;","\"use strict\";\n// Build out our basic SafeString type\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = function() {\n return \"\" + this.string;\n};\n\nexports[\"default\"] = SafeString;","\"use strict\";\n/*jshint -W004 */\nvar SafeString = require(\"./safe-string\")[\"default\"];\n\nvar escape = {\n \"&\": \"&amp;\",\n \"<\": \"&lt;\",\n \">\": \"&gt;\",\n '\"': \"&quot;\",\n \"'\": \"&#x27;\",\n \"`\": \"&#x60;\"\n};\n\nvar badChars = /[&<>\"'`]/g;\nvar possible = /[&<>\"'`]/;\n\nfunction escapeChar(chr) {\n return escape[chr] || \"&amp;\";\n}\n\nfunction extend(obj, value) {\n for(var key in value) {\n if(Object.prototype.hasOwnProperty.call(value, key)) {\n obj[key] = value[key];\n }\n }\n}\n\nexports.extend = extend;var toString = Object.prototype.toString;\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\nvar isFunction = function(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\nif (isFunction(/x/)) {\n isFunction = function(value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nvar isFunction;\nexports.isFunction = isFunction;\nvar isArray = Array.isArray || function(value) {\n return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false;\n};\nexports.isArray = isArray;\n\nfunction escapeExpression(string) {\n // don't escape SafeStrings, since they're already safe\n if (string instanceof SafeString) {\n return string.toString();\n } else if (!string && string !== 0) {\n return \"\";\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = \"\" + string;\n\n if(!possible.test(string)) { return string; }\n return string.replace(badChars, escapeChar);\n}\n\nexports.escapeExpression = escapeExpression;function isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nexports.isEmpty = isEmpty;"]}
{"version":3,"file":"bundle.js","sources":["node_modules/browserify/node_modules/browser-pack/_prelude.js","lib/client","lib/client/section-list.js","lib/client/xhr.js","lib/client/section.js","lib/common/tests-index.js","lib/views/partials/success-result.hbs","lib/views/partials/fail-result.hbs","lib/views/partials/error-result.hbs","lib/views/partials/skip-result.hbs","node_modules/hbsfy/runtime.js","node_modules/handlebars/runtime.js","node_modules/handlebars/dist/cjs/handlebars.runtime.js","node_modules/handlebars/dist/cjs/handlebars/base.js","node_modules/handlebars/dist/cjs/handlebars/safe-string.js","node_modules/handlebars/dist/cjs/handlebars/utils.js","node_modules/handlebars/dist/cjs/handlebars/exception.js","node_modules/handlebars/dist/cjs/handlebars/runtime.js"],"names":["SectionList","this","_sectionsIndex","Index","_sections","map","call","document","querySelectorAll","node","section","Section","add","require","Array","prototype","every","constuctor","expandAll","forEach","expand","collapseAll","collapse","expandErrors","expandIfError","markAllAsQueued","status","markIfFinished","nodes","domNode","allChildrenFinished","_sectionForNode","isFinished","findSection","query","find","findParent","browserId","suiteId","stateName","parentSectionNode","_findParentSectionNode","parentNode","classList","contains","getAttribute","module","exports","post","url","data","callback","xhr","XMLHttpRequest","open","setRequestHeader","onload","JSON","parse","responseText","Error","error","send","stringify","statusClass","getInitialStatus","sectionNode","i","statusList","length","_status","_titleNode","querySelector","_bodyNode","addEventListener","toggle","bind","successTemplate","failTemplate","errorTemplate","skipTemplate","remove",{"end":{"file":"?","comments_before":[],"nlb":false,"endpos":1552,"pos":1546,"col":8,"line":57,"value":"status","type":"name"},"start":{"file":"?","comments_before":[],"nlb":false,"endpos":1552,"pos":1546,"col":8,"line":57,"value":"status","type":"name"},"name":"status"},"value","setAsFailure","results","innerHTML","replaceButton","updateReference","setAsSuccess","setAsSkipped","setAsError","_this","postData","response","TestsIndex","_index","constructor","item","indexData","suite","states","stateData","state","browsers","HandlebarsCompiler","template","Handlebars","depth0","helpers","partials","compilerInfo","merge","stack1","helper","buffer","functionType","escapeExpression","referenceURL","hash","currentURL","diffURL","stack","base","SafeString","Exception","Utils","runtime","create","hb","HandlebarsEnvironment","extend","VM","spec","registerDefaultHelpers","instance","registerHelper","arg","arguments","undefined","context","options","inverse","fn","isFunction","isArray","each","ret","createFrame","j","index","first","last","key","hasOwnProperty","conditional","includeZero","isEmpty","level","parseInt","log","obj","logger","VERSION","COMPILER_REVISION","REVISION_CHANGES",1,2,3,4,"toString","objectType","name","not","registerPartial","str","methodMap","DEBUG","INFO","WARN","ERROR","method","console","object","string","escapeChar","chr","escape","Object","possible","test","replace","badChars","&","<",">","\"","'","`","message","line","firstLine","firstColumn","tmp","idx","errorProps","lineNumber","column","checkRevision","compilerRevision","currentRevision","runtimeVersions","compilerVersions","templateSpec","env","invokePartialWrapper","partial","result","invokePartial","apply","compile","container","programs","program","programWrapper","param","common","programWithDepth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iD,sBAAzBuF,SAASpK,KAAK6E,IAGxD,IAAI6D,WACJjG,SAAQiG,WAAaA,UACrB,IAAIC,SAAUnI,MAAMmI,SAAW,SAAS9D,GACtC,MAAQA,IAA0B,gBAAVA,GAA+C,mBAAzBuF,SAASpK,KAAK6E,IAA8B,EAE5FpC,SAAQkG,QAAUA,QAmBlBlG,QAAQsE,iBAAmBA,iBAU3BtE,QAAQ8G,QAAUA;;AJzElB/G,OAAOC,QAAUlC,QAAQ;;ADFzBiC,OAAOC,QAAUlC,QAAQ,sBAAsB","sourcesContent":["(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})","\"use strict\";function failAllParents(e){for(;e=sections.findParent(e);)e.status=\"fail\",e.expand()}function listenForEvents(){var e=new EventSource(\"/events\");e.addEventListener(\"beginSuite\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId});\"queued\"===n.status&&(n.status=\"running\")}),e.addEventListener(\"beginState\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName});\"queued\"===n.status&&(n.status=\"running\")}),e.addEventListener(\"endTest\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});t.equal?n.setAsSuccess(t):(n.setAsFailure(t),n.expand(),failAllParents(n))}),e.addEventListener(\"skipState\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});n.setAsSkipped();var s=sections.findSection({suiteId:t.suiteId,stateName:t.stateName});sections.markIfFinished(s)}),e.addEventListener(\"error\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});n.setAsError({stack:t.stack}),n.expand(),failAllParents(n)}),e.addEventListener(\"endState\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName});sections.markIfFinished(n)}),e.addEventListener(\"endSuite\",function(e){var t=JSON.parse(e.data),n=sections.findSection({suiteId:t.suiteId,stateName:t.stateName,browserId:t.browserId});sections.markIfFinished(n)}),e.addEventListener(\"end\",function(){runButton.disabled=!1})}function run(){runButton.disabled=!0,xhr.post(\"/run\",function(e){e||sections.markAllAsQueued()})}var SectionList=require(\"./section-list\"),xhr=require(\"./xhr\"),byId=document.getElementById.bind(document),runButton,sections;document.addEventListener(\"DOMContentLoaded\",function(){sections=new SectionList,runButton=byId(\"run\"),listenForEvents(),byId(\"expandAll\").addEventListener(\"click\",sections.expandAll.bind(sections)),byId(\"collapseAll\").addEventListener(\"click\",sections.collapseAll.bind(sections)),byId(\"expandErrors\").addEventListener(\"click\",sections.expandErrors.bind(sections)),runButton.addEventListener(\"click\",run)});","/*jshint browser:true*/\n'use strict';\nvar Section = require('./section'),\n Index = require('../common/tests-index'),\n map = Array.prototype.map,\n every = Array.prototype.every;\n\nfunction SectionList() {\n this._sectionsIndex = new Index();\n this._sections = map.call(document.querySelectorAll('.section'), function(node) {\n var section = new Section(node);\n this._sectionsIndex.add(section);\n return section;\n }, this);\n}\n\nSectionList.prototype = {\n constuctor: SectionList,\n\n expandAll: function() {\n this._sections.forEach(function(section) {\n section.expand();\n });\n },\n\n collapseAll: function() {\n this._sections.forEach(function(section) {\n section.collapse();\n });\n },\n\n expandErrors: function() {\n this._sections.forEach(function(section) {\n section.expandIfError();\n });\n },\n\n markAllAsQueued: function() {\n this._sections.forEach(function(section) {\n section.status = 'queued';\n });\n },\n\n markIfFinished: function(section) {\n if (section.status === 'fail') {\n //already marked as fail\n return;\n }\n var nodes = section.domNode.querySelectorAll('.section');\n var allChildrenFinished = every.call(nodes, function(node) {\n return this._sectionForNode(node).isFinished();\n }, this);\n\n if (allChildrenFinished) {\n section.status = 'success';\n }\n },\n\n findSection: function(query) {\n return this._sectionsIndex.find(query);\n },\n\n findParent: function(section) {\n if (section.browserId) {\n return this.findSection({suiteId: section.suiteId, stateName: section.stateName});\n }\n\n if (section.stateName) {\n return this.findSection({suiteId: section.suiteId});\n }\n var parentSectionNode = this._findParentSectionNode(section.domNode);\n if (parentSectionNode) {\n return this._sectionForNode(parentSectionNode);\n }\n return null;\n },\n\n _findParentSectionNode: function(node) {\n while ((node = node.parentNode)) {\n if (node.classList && node.classList.contains('section')) {\n return node;\n }\n }\n return null;\n },\n\n _sectionForNode: function(domNode) {\n var query = {\n suiteId: domNode.getAttribute('data-suite-id'),\n stateName: domNode.getAttribute('data-state-name'),\n browserId: domNode.getAttribute('data-browser-id')\n };\n\n return this.findSection(query);\n }\n};\n\nmodule.exports = SectionList;\n","/*jshint browser:true*/\n'use strict';\n\nexports.post = function(url, data, callback) {\n if (!callback) {\n callback = data;\n data = null;\n }\n var xhr = new XMLHttpRequest();\n xhr.open('POST', url, true);\n xhr.setRequestHeader('Content-Type', 'application/json');\n xhr.onload = function() {\n var data = JSON.parse(xhr.responseText);\n if (xhr.status === 200) {\n callback(null, data);\n } else {\n callback(new Error(data.error));\n }\n };\n\n if (data) {\n xhr.send(JSON.stringify(data));\n } else {\n xhr.send();\n }\n};\n","'use strict';\nvar successTemplate = require('../views/partials/success-result.hbs'),\n failTemplate = require('../views/partials/fail-result.hbs'),\n errorTemplate = require('../views/partials/error-result.hbs'),\n skipTemplate = require('../views/partials/skip-result.hbs'),\n xhr = require('./xhr');\n\nvar statusList = [\n 'idle',\n 'queued',\n 'running',\n 'success',\n 'fail',\n 'skip'\n];\n\nfunction statusClass(status) {\n return 'section_status_' + status;\n}\n\nfunction getInitialStatus(sectionNode) {\n var status;\n for (var i = 0; i< statusList.length; i++) {\n status = statusList[i];\n if (sectionNode.classList.contains(statusClass(status))) {\n return status;\n }\n }\n return null;\n}\n\nfunction Section(node) {\n this.suiteId = node.getAttribute('data-suite-id');\n this.stateName = node.getAttribute('data-state-name');\n this.browserId = node.getAttribute('data-browser-id');\n this.domNode = node;\n this._status = getInitialStatus(node);\n this._titleNode = node.querySelector('.section__title');\n this._bodyNode = node.querySelector('.section__body');\n this._titleNode.addEventListener('click', this.toggle.bind(this));\n}\n\nSection.prototype = {\n constuctor: Section,\n expand:function() {\n this.domNode.classList.remove('section_collapsed');\n },\n\n collapse: function() {\n this.domNode.classList.add('section_collapsed');\n },\n\n toggle: function() {\n this.domNode.classList.toggle('section_collapsed');\n },\n\n get status() {\n return this._status;\n },\n\n set status(value) {\n if (this._status) {\n this.domNode.classList.remove(statusClass(this._status));\n }\n\n this._status = value;\n this.domNode.classList.add(statusClass(this._status));\n },\n\n expandIfError: function() {\n if (this.status === 'fail') {\n this.expand();\n } else {\n this.collapse();\n }\n },\n\n setAsFailure: function(results) {\n this.status = 'fail';\n this._bodyNode.innerHTML = failTemplate(results);\n var replaceButton = this._bodyNode.querySelector('.image-box__replace');\n replaceButton.addEventListener('click', this.updateReference.bind(this));\n },\n\n setAsSuccess: function(results) {\n this.status = 'success';\n this._bodyNode.innerHTML = successTemplate(results);\n },\n\n setAsSkipped: function() {\n this.status = 'skipped';\n this._bodyNode.innerHTML = skipTemplate();\n },\n\n setAsError: function(error) {\n this.status = 'fail';\n this._bodyNode.innerHTML = errorTemplate(error);\n },\n\n isFinished: function() {\n return this.status !== 'queued' &&\n this.status !== 'running';\n },\n\n updateReference: function() {\n var _this = this,\n postData = {\n suiteId: this.suiteId,\n stateName: this.stateName,\n browserId: this.browserId\n };\n xhr.post('/update-ref', postData, function(error, response) {\n if (!error) {\n _this.setAsSuccess(response);\n }\n });\n }\n};\n\nmodule.exports = Section;\n","'use strict';\n\nfunction TestsIndex() {\n this._index = {};\n}\n\nTestsIndex.prototype = {\n constructor: TestsIndex,\n\n add: function(item) {\n if (item.suiteId == null) {\n return;\n }\n\n var indexData = this._index[item.suiteId];\n if (!indexData) {\n indexData = this._index[item.suiteId] = {\n suite: null,\n states: {}\n };\n }\n\n if (item.stateName == null) {\n indexData.suite = item;\n return;\n }\n\n var stateData = indexData.states[item.stateName];\n if (!stateData) {\n stateData = indexData.states[item.stateName] = {\n state: null,\n browsers: {}\n };\n }\n\n if (item.browserId == null) {\n stateData.state = item;\n return;\n }\n stateData.browsers[item.browserId] = item;\n },\n\n find: function(query) {\n var indexData = this._index[query.suiteId];\n if (!indexData) {\n return null;\n }\n if (query.stateName == null) {\n return indexData.suite;\n }\n var stateData = indexData.states[query.stateName];\n if (!stateData) {\n return null;\n }\n\n if (query.browserId == null) {\n return stateData.state;\n }\n\n return stateData.browsers[query.browserId] || null;\n }\n};\n\nmodule.exports = TestsIndex;\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n var buffer = \"\", stack1, helper, functionType=\"function\", escapeExpression=this.escapeExpression;\n\n\n buffer += \"<div class=\\\"image-box\\\">\\n <div class=\\\"image-box__image\\\">\\n <img src=\\\"\";\n if (helper = helpers.referenceURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.referenceURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Reference image\\\">\\n </div>\\n</div>\\n\";\n return buffer;\n });\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n var buffer = \"\", stack1, helper, functionType=\"function\", escapeExpression=this.escapeExpression;\n\n\n buffer += \"<div class=\\\"image-box\\\">\\n <div class=\\\"image-box__image\\\">\\n <div class=\\\"image-box__title\\\">Reference</div>\\n <img src=\\\"\";\n if (helper = helpers.referenceURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.referenceURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Reference image\\\">\\n </div>\\n <button class=\\\"button image-box__replace\\\">&#x2b05;</button>\\n <div class=\\\"image-box__image\\\">\\n <div class=\\\"image-box__title\\\">Current</div>\\n <img src=\\\"\";\n if (helper = helpers.currentURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.currentURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Current image\\\">\\n </div>\\n <div class=\\\"image-box__image\\\">\\n <div class=\\\"image-box__title\\\">Diff</div>\\n <img src=\\\"\";\n if (helper = helpers.diffURL) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.diffURL); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\\" alt=\\\"Diff image\\\">\\n </div>\\n</div>\\n\";\n return buffer;\n });\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n var buffer = \"\", stack1, helper, functionType=\"function\", escapeExpression=this.escapeExpression;\n\n\n buffer += \"<pre class=\\\"stacktrace\\\">\\n\";\n if (helper = helpers.stack) { stack1 = helper.call(depth0, {hash:{},data:data}); }\n else { helper = (depth0 && depth0.stack); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }\n buffer += escapeExpression(stack1)\n + \"\\n</pre>\\n\";\n return buffer;\n });\n","// hbsfy compiled Handlebars template\nvar HandlebarsCompiler = require('hbsfy/runtime');\nmodule.exports = HandlebarsCompiler.template(function (Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\nhelpers = this.merge(helpers, Handlebars.helpers); data = data || {};\n \n\n\n return \"<p>Test skipped</p>\\n\";\n });\n","module.exports = require(\"handlebars/runtime\")[\"default\"];\n","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime');\n","\"use strict\";\n/*globals Handlebars: true */\nvar base = require(\"./handlebars/base\");\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\nvar SafeString = require(\"./handlebars/safe-string\")[\"default\"];\nvar Exception = require(\"./handlebars/exception\")[\"default\"];\nvar Utils = require(\"./handlebars/utils\");\nvar runtime = require(\"./handlebars/runtime\");\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nvar create = function() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = SafeString;\n hb.Exception = Exception;\n hb.Utils = Utils;\n\n hb.VM = runtime;\n hb.template = function(spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n};\n\nvar Handlebars = create();\nHandlebars.create = create;\n\nexports[\"default\"] = Handlebars;","\"use strict\";\nvar Utils = require(\"./utils\");\nvar Exception = require(\"./exception\")[\"default\"];\n\nvar VERSION = \"1.3.0\";\nexports.VERSION = VERSION;var COMPILER_REVISION = 4;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '>= 1.0.0'\n};\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar isArray = Utils.isArray,\n isFunction = Utils.isFunction,\n toString = Utils.toString,\n objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n\n registerDefaultHelpers(this);\n}\n\nexports.HandlebarsEnvironment = HandlebarsEnvironment;HandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: logger,\n log: log,\n\n registerHelper: function(name, fn, inverse) {\n if (toString.call(name) === objectType) {\n if (inverse || fn) { throw new Exception('Arg not supported with multiple helpers'); }\n Utils.extend(this.helpers, name);\n } else {\n if (inverse) { fn.not = inverse; }\n this.helpers[name] = fn;\n }\n },\n\n registerPartial: function(name, str) {\n if (toString.call(name) === objectType) {\n Utils.extend(this.partials, name);\n } else {\n this.partials[name] = str;\n }\n }\n};\n\nfunction registerDefaultHelpers(instance) {\n instance.registerHelper('helperMissing', function(arg) {\n if(arguments.length === 2) {\n return undefined;\n } else {\n throw new Exception(\"Missing helper: '\" + arg + \"'\");\n }\n });\n\n instance.registerHelper('blockHelperMissing', function(context, options) {\n var inverse = options.inverse || function() {}, fn = options.fn;\n\n if (isFunction(context)) { context = context.call(this); }\n\n if(context === true) {\n return fn(this);\n } else if(context === false || context == null) {\n return inverse(this);\n } else if (isArray(context)) {\n if(context.length > 0) {\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n return fn(context);\n }\n });\n\n instance.registerHelper('each', function(context, options) {\n var fn = options.fn, inverse = options.inverse;\n var i = 0, ret = \"\", data;\n\n if (isFunction(context)) { context = context.call(this); }\n\n if (options.data) {\n data = createFrame(options.data);\n }\n\n if(context && typeof context === 'object') {\n if (isArray(context)) {\n for(var j = context.length; i<j; i++) {\n if (data) {\n data.index = i;\n data.first = (i === 0);\n data.last = (i === (context.length-1));\n }\n ret = ret + fn(context[i], { data: data });\n }\n } else {\n for(var key in context) {\n if(context.hasOwnProperty(key)) {\n if(data) { \n data.key = key; \n data.index = i;\n data.first = (i === 0);\n }\n ret = ret + fn(context[key], {data: data});\n i++;\n }\n }\n }\n }\n\n if(i === 0){\n ret = inverse(this);\n }\n\n return ret;\n });\n\n instance.registerHelper('if', function(conditional, options) {\n if (isFunction(conditional)) { conditional = conditional.call(this); }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if ((!options.hash.includeZero && !conditional) || Utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function(conditional, options) {\n return instance.helpers['if'].call(this, conditional, {fn: options.inverse, inverse: options.fn, hash: options.hash});\n });\n\n instance.registerHelper('with', function(context, options) {\n if (isFunction(context)) { context = context.call(this); }\n\n if (!Utils.isEmpty(context)) return options.fn(context);\n });\n\n instance.registerHelper('log', function(context, options) {\n var level = options.data && options.data.level != null ? parseInt(options.data.level, 10) : 1;\n instance.log(level, context);\n });\n}\n\nvar logger = {\n methodMap: { 0: 'debug', 1: 'info', 2: 'warn', 3: 'error' },\n\n // State enum\n DEBUG: 0,\n INFO: 1,\n WARN: 2,\n ERROR: 3,\n level: 3,\n\n // can be overridden in the host environment\n log: function(level, obj) {\n if (logger.level <= level) {\n var method = logger.methodMap[level];\n if (typeof console !== 'undefined' && console[method]) {\n console[method].call(console, obj);\n }\n }\n }\n};\nexports.logger = logger;\nfunction log(level, obj) { logger.log(level, obj); }\n\nexports.log = log;var createFrame = function(object) {\n var obj = {};\n Utils.extend(obj, object);\n return obj;\n};\nexports.createFrame = createFrame;","\"use strict\";\n// Build out our basic SafeString type\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = function() {\n return \"\" + this.string;\n};\n\nexports[\"default\"] = SafeString;","\"use strict\";\n/*jshint -W004 */\nvar SafeString = require(\"./safe-string\")[\"default\"];\n\nvar escape = {\n \"&\": \"&amp;\",\n \"<\": \"&lt;\",\n \">\": \"&gt;\",\n '\"': \"&quot;\",\n \"'\": \"&#x27;\",\n \"`\": \"&#x60;\"\n};\n\nvar badChars = /[&<>\"'`]/g;\nvar possible = /[&<>\"'`]/;\n\nfunction escapeChar(chr) {\n return escape[chr] || \"&amp;\";\n}\n\nfunction extend(obj, value) {\n for(var key in value) {\n if(Object.prototype.hasOwnProperty.call(value, key)) {\n obj[key] = value[key];\n }\n }\n}\n\nexports.extend = extend;var toString = Object.prototype.toString;\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\nvar isFunction = function(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\nif (isFunction(/x/)) {\n isFunction = function(value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nvar isFunction;\nexports.isFunction = isFunction;\nvar isArray = Array.isArray || function(value) {\n return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false;\n};\nexports.isArray = isArray;\n\nfunction escapeExpression(string) {\n // don't escape SafeStrings, since they're already safe\n if (string instanceof SafeString) {\n return string.toString();\n } else if (!string && string !== 0) {\n return \"\";\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = \"\" + string;\n\n if(!possible.test(string)) { return string; }\n return string.replace(badChars, escapeChar);\n}\n\nexports.escapeExpression = escapeExpression;function isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nexports.isEmpty = isEmpty;","\"use strict\";\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var line;\n if (node && node.firstLine) {\n line = node.firstLine;\n\n message += ' - ' + line + ':' + node.firstColumn;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n if (line) {\n this.lineNumber = line;\n this.column = node.firstColumn;\n }\n}\n\nException.prototype = new Error();\n\nexports[\"default\"] = Exception;","\"use strict\";\nvar Utils = require(\"./utils\");\nvar Exception = require(\"./exception\")[\"default\"];\nvar COMPILER_REVISION = require(\"./base\").COMPILER_REVISION;\nvar REVISION_CHANGES = require(\"./base\").REVISION_CHANGES;\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = COMPILER_REVISION;\n\n if (compilerRevision !== currentRevision) {\n if (compilerRevision < currentRevision) {\n var runtimeVersions = REVISION_CHANGES[currentRevision],\n compilerVersions = REVISION_CHANGES[compilerRevision];\n throw new Exception(\"Template was precompiled with an older version of Handlebars than the current runtime. \"+\n \"Please update your precompiler to a newer version (\"+runtimeVersions+\") or downgrade your runtime to an older version (\"+compilerVersions+\").\");\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new Exception(\"Template was precompiled with a newer version of Handlebars than the current runtime. \"+\n \"Please update your runtime to a newer version (\"+compilerInfo[1]+\").\");\n }\n }\n}\n\nexports.checkRevision = checkRevision;// TODO: Remove this line and break up compilePartial\n\nfunction template(templateSpec, env) {\n if (!env) {\n throw new Exception(\"No environment passed to template\");\n }\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as psuedo-supported APIs.\n var invokePartialWrapper = function(partial, name, context, helpers, partials, data) {\n var result = env.VM.invokePartial.apply(this, arguments);\n if (result != null) { return result; }\n\n if (env.compile) {\n var options = { helpers: helpers, partials: partials, data: data };\n partials[name] = env.compile(partial, { data: data !== undefined }, env);\n return partials[name](context, options);\n } else {\n throw new Exception(\"The partial \" + name + \" could not be compiled when running in runtime-only mode\");\n }\n };\n\n // Just add water\n var container = {\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n programs: [],\n program: function(i, fn, data) {\n var programWrapper = this.programs[i];\n if(data) {\n programWrapper = program(i, fn, data);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = program(i, fn);\n }\n return programWrapper;\n },\n merge: function(param, common) {\n var ret = param || common;\n\n if (param && common && (param !== common)) {\n ret = {};\n Utils.extend(ret, common);\n Utils.extend(ret, param);\n }\n return ret;\n },\n programWithDepth: env.VM.programWithDepth,\n noop: env.VM.noop,\n compilerInfo: null\n };\n\n return function(context, options) {\n options = options || {};\n var namespace = options.partial ? options : env,\n helpers,\n partials;\n\n if (!options.partial) {\n helpers = options.helpers;\n partials = options.partials;\n }\n var result = templateSpec.call(\n container,\n namespace, context,\n helpers,\n partials,\n options.data);\n\n if (!options.partial) {\n env.VM.checkRevision(container.compilerInfo);\n }\n\n return result;\n };\n}\n\nexports.template = template;function programWithDepth(i, fn, data /*, $depth */) {\n var args = Array.prototype.slice.call(arguments, 3);\n\n var prog = function(context, options) {\n options = options || {};\n\n return fn.apply(this, [context, options.data || data].concat(args));\n };\n prog.program = i;\n prog.depth = args.length;\n return prog;\n}\n\nexports.programWithDepth = programWithDepth;function program(i, fn, data) {\n var prog = function(context, options) {\n options = options || {};\n\n return fn(context, options.data || data);\n };\n prog.program = i;\n prog.depth = 0;\n return prog;\n}\n\nexports.program = program;function invokePartial(partial, name, context, helpers, partials, data) {\n var options = { partial: true, helpers: helpers, partials: partials, data: data };\n\n if(partial === undefined) {\n throw new Exception(\"The partial \" + name + \" could not be found\");\n } else if(partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nexports.invokePartial = invokePartial;function noop() { return \"\"; }\n\nexports.noop = noop;"]}
{
"name": "gemini-gui",
"version": "0.1.1",
"version": "0.1.2",
"description": "GUI for gemini testing utility",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc