Index: LayoutTests/fast/dom/script-tests/webtiming-document-open.js |
diff --git a/LayoutTests/fast/dom/script-tests/webtiming-document-open.js b/LayoutTests/fast/dom/script-tests/webtiming-document-open.js |
index 70c97dcec1e73051cb31ddf4ac1f89a67e653f40..75d96564e1e405e8f0eda85cf301e29008754270 100644 |
--- a/LayoutTests/fast/dom/script-tests/webtiming-document-open.js |
+++ b/LayoutTests/fast/dom/script-tests/webtiming-document-open.js |
@@ -27,9 +27,13 @@ function testTimingWithDocumentOpen() |
} |
function finishTest() { |
- keys = Object.keys(timing).sort(); |
- for (var i = 0; i < keys.length; ++i) { |
- shouldBe("timing." + keys[i], "originalTiming." + keys[i]); |
+ var properties = []; |
jsbell
2015/01/21 18:09:39
This pattern repeats often. Perhaps we should add
Yuki
2015/01/22 06:53:29
Done.
|
+ for (property in timing) { |
+ properties.push(property); |
+ } |
+ properties.sort(); |
+ for (var i = 0; i < properties.length; ++i) { |
+ shouldBe("timing." + properties[i], "originalTiming." + properties[i]); |
} |
finishJSTest(); |