Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / function-name.js
blob070386cbf9d9a230571172d43cc0d8d67d813a69
1 description(
2 'Test for function.name'
3 );
5 shouldBe("(function f() {}).name", "'f'");
6 shouldBe("delete (function f() {}).name", "true");
7 shouldBe("(function() {}).name", "''");
8 shouldBe("Math.name", "undefined");
9 shouldBe("Error.name", "'Error'");
10 shouldBe("String.prototype.charAt.name", "'charAt'");
11 shouldBe("document.getElementById.name", "'getElementById'");