expected_events--;
assertTrue(expected_events >= 0);
assertEquals("reject", event_data.exception().message);
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertFalse(event_data.uncaught());
}
} catch (e) {
assertTrue(expected_events >= 0);
assertEquals("uncaught reject", event_data.exception().message);
assertTrue(event_data.promise() instanceof Promise);
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertTrue(event_data.uncaught());
// All of the frames on the stack are from native Javascript.
assertEquals(0, exec_state.frameCount());
assertTrue(expected_events >= 0);
assertEquals("uncaught reject p", event_data.exception().message);
assertTrue(event_data.promise() instanceof Promise);
- assertEquals(p, event_data.promise());
+ assertSame(p, event_data.promise());
assertTrue(event_data.uncaught());
// Assert that the debug event is triggered at the throw site.
assertTrue(exec_state.frame(0).sourceLineText().indexOf("// event") > 0);
assertTrue(expected_events >= 0);
assertEquals("uncaught reject", event_data.exception().message);
assertTrue(event_data.promise() instanceof Promise);
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertTrue(event_data.uncaught());
// All of the frames on the stack are from native Javascript.
assertEquals(0, exec_state.frameCount());
assertEquals("number is not a function", event_data.exception().message);
// All of the frames on the stack are from native Javascript.
assertEquals(0, exec_state.frameCount());
- assertEquals(q, event_data.promise());
}
} catch (e) {
%AbortJS(e + "\n" + e.stack);
assertEquals("caught", event_data.exception().message);
// All of the frames on the stack are from native Javascript.
assertEquals(0, exec_state.frameCount());
- assertEquals(q, event_data.promise());
}
} catch (e) {
%AbortJS(e + "\n" + e.stack);
expected_events--;
assertTrue(expected_events >= 0);
assertEquals("caught", event_data.exception().message);
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertFalse(event_data.uncaught());
}
} catch (e) {
assertTrue(expected_events >= 0);
assertEquals("uncaught", event_data.exception().message);
assertTrue(event_data.promise() instanceof Promise);
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertTrue(event_data.uncaught());
// Assert that the debug event is triggered at the throw site.
assertTrue(exec_state.frame(0).sourceLineText().indexOf("// event") > 0);
assertTrue(expected_events >= 0);
assertEquals("uncaught", event_data.exception().message);
assertTrue(event_data.promise() instanceof Promise);
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertTrue(event_data.uncaught());
// Assert that the debug event is triggered at the throw site.
assertTrue(exec_state.frame(0).sourceLineText().indexOf("// event") > 0);
} else {
assertUnreachable();
}
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
assertTrue(exec_state.frame(0).sourceLineText().indexOf('// event') > 0);
}
} catch (e) {
} else {
assertUnreachable();
}
- assertEquals(q, event_data.promise());
+ assertSame(q, event_data.promise());
}
} catch (e) {
%AbortJS(e + "\n" + e.stack);