nashorn/test/script/trusted/event_queue.js.EXPECTED
author lagergren
Thu, 27 Mar 2014 11:45:54 +0100
changeset 24731 ab0c8fc915ae
child 24742 a9afb384e654
permissions -rw-r--r--
8038406: Testability: as a first step of moving loggers away from the process global space, the Debug object now supports logging POJOs from log entries as an event queue, which can be introspected from test scripts. This is way better than screen scraping brittle and subject-to-change log output. Reviewed-by: attila, hannesw, sundar

[object Debug]

[JavaClass jdk.nashorn.internal.runtime.RuntimeEvent]
[JavaClass jdk.nashorn.internal.runtime.RewriteException]

4.840000000000001
13.7

Done with 2 in the event queue
events = true
events.length = 2
event #0
	event class=class jdk.nashorn.internal.runtime.RuntimeEvent
	valueClass in event=class jdk.nashorn.internal.runtime.RewriteException
	class of value=class jdk.nashorn.internal.runtime.RewriteException
	return type=double
event #1
	event class=class jdk.nashorn.internal.runtime.RuntimeEvent
	valueClass in event=class jdk.nashorn.internal.runtime.RewriteException
	class of value=class jdk.nashorn.internal.runtime.RewriteException
	return type=double

in loop last class = class jdk.nashorn.internal.runtime.RuntimeEvent
in loop last value class = class jdk.nashorn.internal.runtime.RewriteException
in loop rex class = class jdk.nashorn.internal.runtime.RewriteException
in loop rex return type = double

true

last class = class jdk.nashorn.internal.runtime.RuntimeEvent
last value class = class jdk.nashorn.internal.runtime.RewriteException
rex class = class jdk.nashorn.internal.runtime.RewriteException
rex return type = object

1024
2048

0