Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: LayoutTests/plugins/npruntime/invoke-browserfuncs.html

Issue 1319473007: Delete a bunch of NPAPI layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/plugins/npruntime/invoke-browserfuncs.html
diff --git a/LayoutTests/plugins/npruntime/invoke-browserfuncs.html b/LayoutTests/plugins/npruntime/invoke-browserfuncs.html
deleted file mode 100644
index 8e835742dabb7c84339346572a03da0def18ae02..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/npruntime/invoke-browserfuncs.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<html>
-<head>
-<script>
-function doTest()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var plugin = document.getElementById("testPlugin");
- var console = document.getElementById("console");
-
- var o = { internalFunction : Object, doStuff: function() {return 20;}, stringProperty : 'str', nullProperty : null, undefinedProperty : undefined };
-
- function report(property, result, expected) {
- if (result !== expected) {
- console.innerHTML += "FAILURE: " + property + "<br/>";
- } else {
- console.innerHTML += "SUCCESS: " + property + "<br/>";
- }
- }
-
- function shouldBeFunction(property, expected) {
- report(property, plugin.testHasMethod(o, property), expected);
- }
-
- function shouldBeProperty(property, expected) {
- report(property, plugin.testHasProperty(o, property), expected);
- }
-
- /* test hasmethod */
- console.innerHTML += "Testing hasmethod<br />";
- shouldBeFunction("internalFunction", true);
- shouldBeFunction("doStuff", true);
- shouldBeFunction("undefinedProperty", false);
-
- /* test hasproperty */
- console.innerHTML += "<br />Testing hasproperty<br />";
- shouldBeProperty("internalFunction", true);
- shouldBeProperty("doStuff", true);
- shouldBeProperty("stringProperty", true);
- shouldBeProperty("nullProperty", true);
- shouldBeProperty("undefinedProperty", true);
- shouldBeProperty("notDefinedProperty", false);
-}
-</script>
-</head>
-<body onload="doTest();">
-<p>Test if the plugin can properly invoke the browserfuncs</p>
-<embed id="testPlugin" type="application/x-webkit-test-netscape"></embed>
-<div id="console"></div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/plugins/npruntime/invoke.html ('k') | LayoutTests/plugins/npruntime/invoke-browserfuncs-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698