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

Unified Diff: LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
Index: LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
diff --git a/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js b/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
index 5eeb27647add53ad8acdec190cdfbb7aface0401..5ac3d5113b2e29bf1a958591b7295fb9dc4baf64 100644
--- a/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
+++ b/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
@@ -5,9 +5,13 @@ var timing = performance.timing || {};
function checkTimingNotChanged()
{
- properties = Object.keys(timing).sort();
+ var properties = [];
+ for (var property in timing) {
+ properties.push(property);
+ }
+ properties.sort();
for (var i = 0; i < properties.length; ++i) {
- property = properties[i];
+ var property = properties[i];
if (timing[property] === initialTiming[property])
testPassed(property + " is unchanged.");
else

Powered by Google App Engine
This is Rietveld 408576698