我想在使用Jasmine执行使用Protractor的测试时在浏览器的控制台中显示消息,因为浏览器的控制台更有用和可读,当我在量角器中使用它时没有有效值总是会向我显示像
这样的长消息Object {
closure_uid_824017913: 1230,
flow_:
Object {
events_: Object {},
closure_uid_824017913: 1,
activeFrame_:
Object {
events_: Object {},
closure_uid_824017913: 1033,
flow_: [Circular],
parent_: [Object],
children_: [Object],
lastInsertedChild_: [Object],
pendingTask_: null,
isLocked_: false,
isBlocked_: false,
pendingCallback: false,
pendingRejection: false,
cancellationError_: null },
runningFrame_:
Object {
events_: Object {},
closure_uid_824017913: 1033,
flow_: [Circular],
parent_: [Object],
children_: [Object],
lastInsertedChild_: [Object],
pendingTask_: null,
isLocked_: false,
isBlocked_: false,
pendingCallback: false,
pendingRejection: false,
cancellationError_: null },
schedulingFrame_:
Object {
events_: Object {},
closure_uid_824017913: 1033,
flow_: [Circular],
parent_: [Object],
children_: [Object],
lastInsertedChild_: [Object],
pendingTask_: null,
isLocked_: false,
isBlocked_: false,
pendingCallback: false,
pendingRejection: false,
cancellationError_: null },
shutdownTask_: null,
eventLoopTask_: null,
hold_:
{ _called: false,
_idleTimeout: 2147483647,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 12906,
_onTimeout: [Function: wrapper],
_repeat: [Function] },
yieldCount_: 7 },
stack_: null,
parent_:
Object {
closure_uid_824017913: 1228,
flow_:
Object {
events_: Object {},
closure_uid_824017913: 1,
activeFrame_: [Object],
runningFrame_: [Object],
schedulingFrame_: [Object],
shutdownTask_: null,
eventLoopTask_: null,
hold_: [Object],
yieldCount_: 7 },
stack_: null,
parent_:
Object {
closure_uid_824017913: 1226,
flow_: [Object],
stack_: null,
parent_: [Object],
callbacks_: [Object],
state_: 'pending',
handled_: true,
pendingNotifications_: false,
value_: undefined },
callbacks_: [ [Object] ],
state_: 'pending',
handled_: true,
pendingNotifications_: false,
value_: undefined },
callbacks_: null,
state_: 'pending',
handled_: false,
pendingNotifications_: false,
value_: undefined }
这一切都很有用。