This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listeners: { | |
boxready: function (component, eOpts) { | |
Ext.each(Ext.query(".x-column-header-checkbox"), function(element) { | |
setStyle(element, {'width': '25px'}); | |
}); | |
Ext.each(Ext.query(".x-grid-header-row :first"), function(element) { | |
setStyle(element, {'width': '25px'}); | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"toFile" : [ | |
{"from": "/js/(.+\\.js)", | |
"to": "/js/$1"}, | |
{"from": "/css/(.+\\.css)", | |
"to": "/css/$1"} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LocalStorageAppender.prototype.append = function(loggingEvent) { | |
var appender = this; | |
var getFormattedMessage = function() { | |
var layout = appender.getLayout(); | |
var formattedMessage = layout.format(loggingEvent); | |
if (layout.ignoresThrowable() && loggingEvent.exception) { | |
formattedMessage += loggingEvent.getThrowableStrRep(); | |
} | |
return formattedMessage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LocalStorageAppender.prototype = new log4javascript.Appender(); | |
LocalStorageAppender.prototype.layout = new log4javascript.NullLayout(); | |
LocalStorageAppender.prototype.threshold = log4javascript.Level.DEBUG; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//replace com.company with your base package for errors | |
//can call via renderErrors(cmd) or renderErrors([cmd1, cmd2]) | |
private void renderErrors(cmd) { | |
renderErrors([cmd]) | |
} | |
private void renderErrors(List commands) { | |
render(contentType: "text/json") { | |
status = "fail" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MobileSpec extends GebReportingSpec { | |
@Shared | |
def isMobile = false | |
def setupSpec() { | |
if (getBrowser().driver instanceof RemoteWebDriver) { | |
RemoteWebDriver remoteWebDriver = getBrowser().driver | |
DesiredCapabilities capabilities = remoteWebDriver.getCapabilities() | |
if (["android", "iPhone", "iPad"].contains(capabilities.browserName)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GebRemotePage extends Page { | |
/** | |
* Returns the constant part of the url to this page. | |
* <p> | |
* This implementation returns the static url property of the class. | |
*/ | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver = { new FirefoxDriver() } | |
environments { | |
// when system property 'geb.env' is set to 'win-ie' use a remote IE driver | |
'win-ie' { | |
driver = { | |
new RemoteWebDriver(new URL("http://windows.ci-server.local"), DesiredCapabilities.internetExplorer()) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Runnning one of: | |
grails -Dgeb.env=local-iphone test-app functional: | |
grails -Dgeb.env=local-ipad test-app functional: | |
grails test-app functional: | |
at the command line, with the following files: | |
GebConfig.groovy | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//document.ready() js function contains backbone.js instantiating code which: | |
$.mobile.pushStateEnabled = false; | |
new App.Routers.TodosRouter(); | |
Backbone.history = Backbone.history || new Backbone.History({}); | |
Backbone.history.start(); | |
//Backbone Router | |
App.Routers.TodosRouter = Backbone.Router.extend({ |