| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../../resources/js-test-pre.js"></script> |
| </head> |
| <body> |
| <script> |
| description("Tests that the following classes are not manipulable by JavaScript (NoInterfaceObject)."); |
| |
| function shouldThrowReferenceError(expr) |
| { |
| var e; |
| try { |
| eval(expr); |
| } catch (_e) { |
| e = _e; |
| } |
| |
| var msg = expr + (e ? " threw exception " + e.name : " did not throw"); |
| if (e && e.name == "ReferenceError") |
| testPassed(msg); |
| else |
| testFailed(msg); |
| } |
| |
| function test(name) |
| { |
| shouldBe('typeof ' + name, '"undefined"'); |
| shouldThrowReferenceError(name + '.prototype'); |
| } |
| |
| test('NavigatorUserMedia'); |
| test('NavigatorUserMediaError'); |
| test('NavigatorUserMediaSuccessCallback'); |
| test('NavigatorUserMediaErrorCallback'); |
| |
| window.jsTestIsAsync = false; |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |