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

Unified Diff: webkit/data/layout_tests/chrome/plugins/nested-plugin-objects.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/nested-plugin-objects.html
===================================================================
--- webkit/data/layout_tests/chrome/plugins/nested-plugin-objects.html (revision 35112)
+++ webkit/data/layout_tests/chrome/plugins/nested-plugin-objects.html (working copy)
@@ -1,80 +0,0 @@
-<html>
-<script>
-
-var callbackCount = 0;
-
-function npapiCallback(x) {
- callbackCount++;
-}
-
-function runTest()
-{
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
-
- var successCount = 0;
- var plugin = document.getElementById("testPlugin");
- plugin.logDestroy = true;
-
- var testObject = plugin.testObject;
- plugin.testPassTestObject("npapiCallback", testObject);
- var testObject2 = testObject.testObject;
- plugin.testPassTestObject("npapiCallback", testObject2);
- var testObject3 = testObject2.testObject;
- plugin.testPassTestObject("npapiCallback", testObject3);
-
- if (callbackCount == 3)
- successCount++;
-
- plugin.parentNode.removeChild(plugin);
-
- try {
- testObject.property;
- } catch (e) {
- if (e instanceof ReferenceError)
- successCount++;
- }
-
- try {
- testObject.property = 'hello';
- } catch (e) {
- if (e instanceof ReferenceError)
- successCount++;
- }
-
- try {
- testObject2.property;
- } catch (e) {
- if (e instanceof ReferenceError)
- successCount++;
- }
-
- try {
- testObject3.property;
- } catch (e) {
- if (e instanceof ReferenceError)
- successCount++;
- }
-
- if (successCount == 5)
- document.getElementById('result').innerHTML = 'SUCCESS';
-}
-
-</script>
-
-<body onload="runTest();">
-<pre>
-This tests that objects from plugin objects are properly cleaned up.
-
-Example:
- plugin
- ------- (Creates) ------ Object1
- ------- (Creates) ------ Object2
-
-It is important that both Object1 and Object2 cleanup as a result of
-cleaning up the plugin.
-
-<div id="result">FAILURE</div>
-<embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698