summaryrefslogtreecommitdiff
path: root/browser/devtools/shared/test/browser_flame-graph-utils-hash.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/devtools/shared/test/browser_flame-graph-utils-hash.js')
-rw-r--r--browser/devtools/shared/test/browser_flame-graph-utils-hash.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/browser/devtools/shared/test/browser_flame-graph-utils-hash.js b/browser/devtools/shared/test/browser_flame-graph-utils-hash.js
deleted file mode 100644
index e5509e482..000000000
--- a/browser/devtools/shared/test/browser_flame-graph-utils-hash.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Tests if (idle) nodes are added when necessary in the flame graph data.
-
-let {FlameGraphUtils} = Cu.import("resource:///modules/devtools/FlameGraph.jsm", {});
-
-let test = Task.async(function*() {
- let hash1 = FlameGraphUtils._getStringHash("abc");
- let hash2 = FlameGraphUtils._getStringHash("acb");
- let hash3 = FlameGraphUtils._getStringHash(Array.from(Array(100000)).join("a"));
- let hash4 = FlameGraphUtils._getStringHash(Array.from(Array(100000)).join("b"));
-
- isnot(hash1, hash2, "The hashes should not be equal (1).");
- isnot(hash2, hash3, "The hashes should not be equal (2).");
- isnot(hash3, hash4, "The hashes should not be equal (3).");
-
- ok(Number.isInteger(hash1), "The hashes should be integers, not Infinity or NaN (1).");
- ok(Number.isInteger(hash2), "The hashes should be integers, not Infinity or NaN (2).");
- ok(Number.isInteger(hash3), "The hashes should be integers, not Infinity or NaN (3).");
- ok(Number.isInteger(hash4), "The hashes should be integers, not Infinity or NaN (4).");
-
- finish();
-});