blob: 957495e3990e82ed141faf5bcca43370b3d1ac39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const TEST_URI =
"data:text/html,<!DOCTYPE html>Test evaluating null and undefined";
add_task(async function () {
const hud = await openNewTabAndConsole(TEST_URI);
// Check that an evaluated null produces "null". See Bug 650780.
let message = await executeAndWaitForResultMessage(hud, "null", "null");
ok(message, "`null` returned the expected value");
message = await executeAndWaitForResultMessage(hud, "undefined", "undefined");
ok(message, "`undefined` returned the expected value");
});
|