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

Unified Diff: webkit/data/layout_tests/chrome/plugins/multiple-plugins.html

Issue 504079: Remove tests that have been upstreamed:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add test_expectations.txt mods Created 11 years 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: webkit/data/layout_tests/chrome/plugins/multiple-plugins.html
===================================================================
--- webkit/data/layout_tests/chrome/plugins/multiple-plugins.html (revision 35112)
+++ webkit/data/layout_tests/chrome/plugins/multiple-plugins.html (working copy)
@@ -1,90 +0,0 @@
-<script>
- function noop(x) {
- }
-
- function doGC() {
- if (window.gc) {
- // GC twice to make sure everything is cleaned up.
- for (var i = 0; i < 4; i++) {
- window.gc();
- }
- }
- }
-
- function runtest() {
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
-
- doGC();
-
- var plug1 = document.getElementById("plug1");
- var plug2 = document.getElementById("plug2");
- var output = document.getElementById("output");
- output.innerHTML = "";
-
- var testObj1 = plug1.testObject;
- var testObj2 = plug2.testObject;
-
- var successCount = 0;
-
- // Verify we can access each object.
- if (testObj1.foo == "foo") {
- successCount++;
- output.innerHTML += "Got testObj1 property<br>";
- }
- if (testObj2.foo == "foo") {
- successCount++;
- output.innerHTML += "Got testObj2 property<br>";
- }
-
- // Now remove the first plugin
- plug1.parentNode.removeChild(plug1);
-
- try {
- if (testObj1.foo == "foo") {
- output.innerHTML = "Accessed nuked object!<br>";
- }
- } catch (e) {
- if (e instanceof ReferenceError)
- successCount++;
- }
-
- try {
- if (testObj2.foo == "foo") {
- successCount++;
- output.innerHTML += "Got testObj2 property<br>";
- }
- } catch(e) {
- output.inerHTML += "Reference error accessing live object: " + e;
- }
-
- // Now remove the second plugin
- plug2.parentNode.removeChild(plug2);
-
- try {
- if (testObj2.foo == "foo") {
- output.innerHTML = "Accessed nuked object!<br>";
- }
- } catch (e) {
- if (e instanceof ReferenceError)
- successCount++;
- }
-
- var success = (successCount == 5);
- output.innerHTML += (success ? "SUCCESS" : "FAILURE");
- }
-</script>
-
-<body onload="runtest()">
-
-Test that we can create two plugins, and independently clean each.
-
-Prints "SUCCESS" on success, "FAILURE" on failure.
-
-<embed id="plug1" type="application/x-webkit-test-netscape">
-<embed id="plug2" type="application/x-webkit-test-netscape">
-
-<div id=output>FAILURE</div>
-
-</body>
-

Powered by Google App Engine
This is Rietveld 408576698