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

Unified Diff: LayoutTests/perf/document-contains.html

Issue 51383002: Delete perf tests that are WontFixed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: try again Created 7 years, 2 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
« no previous file with comments | « LayoutTests/perf/clone-with-focus-expected.txt ('k') | LayoutTests/perf/document-contains-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/perf/document-contains.html
diff --git a/LayoutTests/perf/document-contains.html b/LayoutTests/perf/document-contains.html
deleted file mode 100644
index 25809b0cf6e7c8c1d18eff19260a6f774d62a739..0000000000000000000000000000000000000000
--- a/LayoutTests/perf/document-contains.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/magnitude-perf.js"></script>
-<body>
-<script>
-
-var doc, node, expected;
-
-function appendDeepTree(magnitude)
-{
- for (var i = 0; i < magnitude; i++) {
- node = node.appendChild(doc.createElement('div'));
- }
-}
-
-
-// Tests that contains is O(1) for document where the test |node| is in the document.
-
-function setup1(magnitude)
-{
- node = document.body;
- doc = document;
- expected = true;
- appendDeepTree(magnitude);
-}
-
-// Tests that contains is O(1) for document when the test |node| is not in the document.
-
-function setup2(magnitude)
-{
- node = document.createElement('div'); // Not added to the document
- doc = document;
- expected = false;
- appendDeepTree(magnitude);
-}
-
-// Tests that contains is O(1) for document when the test |node| is in a different document.
-
-function setup3(magnitude)
-{
- var iframe = document.body.appendChild(document.createElement('iframe'));
- doc = iframe.contentDocument;
- node = doc.body; // Different document.
- expected = false;
- appendDeepTree(magnitude);
-}
-
-function test(magnitude)
-{
- var actual = document.contains(node);
- if (actual !== expected)
- throw 'Unexpected return value: ' + actual + ', expected: ' + expected;
-}
-
-Magnitude.description('Tests that document.contains is O(1).');
-Magnitude.tolerance = 0.50;
-Magnitude.trim = 2;
-Magnitude.run(setup1, test, Magnitude.CONSTANT);
-Magnitude.run(setup2, test, Magnitude.CONSTANT);
-Magnitude.run(setup3, test, Magnitude.CONSTANT);
-
-</script>
-</body>
« no previous file with comments | « LayoutTests/perf/clone-with-focus-expected.txt ('k') | LayoutTests/perf/document-contains-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698