throw "Application " + appId + " already initialized";
}
log("init application", appId, config);
+
+ var testbenchId = appId.replace(/-\d+$/, '');
+ window.vaadin.clients[testbenchId] = {
+ isActive: function() {
+ return true;
+ }
+ }
+
var getConfig = function(name) {
var value = config[name];
if (value === undefined) {
return app;
},
+ clients: {},
getApp: function(appId) {
var app = apps[appId];
return app;
return componentLocator.@com.vaadin.terminal.gwt.client.ComponentLocator::getPathForElement(Lcom/google/gwt/user/client/Element;)(element);
}
- if (!$wnd.vaadin.clients) {
- $wnd.vaadin.clients = {};
- }
-
$wnd.vaadin.clients[TTAppId] = client;
}-*/;
cssWaits++;
} else {
cssLoaded = true;
+
+ // Update counter so TestBench knows something is going on
+ incrementActiveRequests();
handleReceivedJSONMessage(new Date(), jsonText, json);
if (cssWaits >= MAX_CSS_WAITS) {
VConsole.error("CSS files may have not loaded properly.");