aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/resources/com/vaadin/tests/htmlimport/ui.js
blob: 24a8405ab04ab7240c516d8b110a12ae7d3d6092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(function() {
	window.logMessage = function(msg) {
		if (!window.document.getElementById("clientlog")) {
			var d = document.createElement("div");
			d.id = "clientlog";
			document.body.insertBefore(d, document.body.firstChild);
		}
		var d = document.createElement("div");
		d.innerText = msg;
		d.className = "message";
		window.document.getElementById("clientlog").appendChild(d);

	}
})();