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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-access.js

Issue 1360233007: bindings: Moves event handlers and methods of Window to the instance object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-access.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-access.js b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-access.js
index 31c39604ef3b3d701f92e248ba813b8a387031f0..ce47fbcb728c6058c384dd2078586a5a590f2004 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-access.js
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-access.js
@@ -34,19 +34,19 @@ function shouldBe(a, b, shouldNotPrintValues)
log(message);
}
-function shouldBeTrue(a)
-{
- shouldBe(a, "true");
+function shouldBeTrue(a)
+{
+ shouldBe(a, "true");
}
-function shouldBeFalse(b)
-{
- shouldBe(b, "false");
+function shouldBeFalse(b)
+{
+ shouldBe(b, "false");
}
-function shouldBeUndefined(b)
-{
- shouldBe(b, "undefined");
+function shouldBeUndefined(b)
+{
+ shouldBe(b, "undefined");
}
function canGet(keyPath)
@@ -93,7 +93,7 @@ function canGetDescriptor(target, property)
var desc = Object.getOwnPropertyDescriptor(target, property);
// To deal with an idiosyncrasy in how binding objects work in conjunction with
// slot and descriptor delegates we also allow descriptor with undefined value/getter/setter
- return desc !== undefined && (desc.value !== undefined || desc.get !== undefined || desc.set !== undefined);
+ return desc !== undefined && (desc.value !== undefined || desc.get !== undefined || desc.set !== undefined);
} catch(e) {
return false;
}
@@ -128,7 +128,7 @@ function toString(expression, valueForException)
{
if (valueForException === undefined)
valueForException = "[exception]";
-
+
try {
var evalExpression = eval(expression);
if (evalExpression === undefined)

Powered by Google App Engine
This is Rietveld 408576698