Title: [116655] trunk/LayoutTests
- Revision
- 116655
- Author
- [email protected]
- Date
- 2012-05-10 09:47:45 -0700 (Thu, 10 May 2012)
Log Message
Add test that makes sure wrappers are setup using the correct window scope
https://bugs.webkit.org/show_bug.cgi?id=85526
Reviewed by Ojan Vafai.
This tests the same thing as the recently removed fast/dom/prototype-inheritance.html test.
* fast/dom/wrapper-scope-expected.txt: Added.
* fast/dom/wrapper-scope.html: Added.
* platform/chromium/test_expectations.txt:
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (116654 => 116655)
--- trunk/LayoutTests/ChangeLog 2012-05-10 16:45:09 UTC (rev 116654)
+++ trunk/LayoutTests/ChangeLog 2012-05-10 16:47:45 UTC (rev 116655)
@@ -1,3 +1,16 @@
+2012-05-10 Erik Arvidsson <[email protected]>
+
+ Add test that makes sure wrappers are setup using the correct window scope
+ https://bugs.webkit.org/show_bug.cgi?id=85526
+
+ Reviewed by Ojan Vafai.
+
+ This tests the same thing as the recently removed fast/dom/prototype-inheritance.html test.
+
+ * fast/dom/wrapper-scope-expected.txt: Added.
+ * fast/dom/wrapper-scope.html: Added.
+ * platform/chromium/test_expectations.txt:
+
2012-05-10 Abhishek Arya <[email protected]>
Crash in InsertParagraphSeparatorCommand::doApply.
Added: trunk/LayoutTests/fast/dom/wrapper-scope-expected.txt (0 => 116655)
--- trunk/LayoutTests/fast/dom/wrapper-scope-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dom/wrapper-scope-expected.txt 2012-05-10 16:47:45 UTC (rev 116655)
@@ -0,0 +1,49 @@
+Make sure wrappers are setup using the window the property came from, instead of the lexical global object.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS inner.HTMLElement.isInner is true
+PASS inner.HTMLElement.constructor.isInner is true
+PASS inner.HTMLElement.constructor.prototype.isInner is true
+PASS inner.HTMLElement.__proto__.isInner is true
+PASS inner.Window.isInner is true
+PASS inner.Window.constructor.isInner is true
+PASS inner.Window.constructor.prototype.isInner is true
+PASS inner.Window.__proto__.isInner is true
+PASS inner.close.isInner is true
+PASS inner.close.constructor.isInner is true
+PASS inner.close.constructor.prototype.isInner is true
+PASS inner.close.__proto__.isInner is true
+PASS inner.console.isInner is true
+PASS inner.console.constructor.isInner is true
+PASS inner.console.constructor.prototype.isInner is true
+PASS inner.console.__proto__.isInner is true
+PASS inner.document.isInner is true
+PASS inner.document.constructor.isInner is true
+PASS inner.document.constructor.prototype.isInner is true
+PASS inner.document.__proto__.isInner is true
+PASS inner.document.body.isInner is true
+PASS inner.document.body.constructor.isInner is true
+PASS inner.document.body.constructor.prototype.isInner is true
+PASS inner.document.body.__proto__.isInner is true
+PASS inner.document.childNodes.isInner is true
+PASS inner.document.childNodes.constructor.isInner is true
+PASS inner.document.childNodes.constructor.prototype.isInner is true
+PASS inner.document.childNodes.__proto__.isInner is true
+PASS inner.navigator.isInner is true
+PASS inner.navigator.constructor.isInner is true
+PASS inner.navigator.constructor.prototype.isInner is true
+PASS inner.navigator.__proto__.isInner is true
+PASS inner.postMessage.isInner is true
+PASS inner.postMessage.constructor.isInner is true
+PASS inner.postMessage.constructor.prototype.isInner is true
+PASS inner.postMessage.__proto__.isInner is true
+PASS inner.window.isInner is true
+PASS inner.window.constructor.isInner is true
+PASS inner.window.constructor.prototype.isInner is true
+PASS inner.window.__proto__.isInner is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/dom/wrapper-scope.html (0 => 116655)
--- trunk/LayoutTests/fast/dom/wrapper-scope.html (rev 0)
+++ trunk/LayoutTests/fast/dom/wrapper-scope.html 2012-05-10 16:47:45 UTC (rev 116655)
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<body>
+<script src=""
+<script>
+
+description('Make sure wrappers are setup using the window the property came from, instead of the lexical global object.');
+
+var frame = document.createElement('iframe');
+document.body.appendChild(frame);
+var inner = frame.contentWindow;
+
+window.Object.prototype.isInner = false;
+inner.Object.prototype.isInner = true;
+
+var pathsToTest = [
+ 'HTMLElement',
+ 'Window',
+ 'close',
+ 'console',
+ 'document',
+ 'document.body',
+ 'document.childNodes',
+ 'navigator',
+ 'postMessage',
+ 'window',
+];
+
+function testPath(path) {
+ shouldBeTrue('inner.' + path + '.isInner');
+ shouldBeTrue('inner.' + path + '.constructor.isInner');
+ shouldBeTrue('inner.' + path + '.constructor.prototype.isInner');
+ shouldBeTrue('inner.' + path + '.__proto__.isInner');
+}
+
+pathsToTest.forEach(testPath);
+
+</script>
+<script src=""
+</body>
\ No newline at end of file
Modified: trunk/LayoutTests/platform/chromium/test_expectations.txt (116654 => 116655)
--- trunk/LayoutTests/platform/chromium/test_expectations.txt 2012-05-10 16:45:09 UTC (rev 116654)
+++ trunk/LayoutTests/platform/chromium/test_expectations.txt 2012-05-10 16:47:45 UTC (rev 116655)
@@ -4051,3 +4051,5 @@
BUGWK85771 SNOWLEOPARD LION LINUX : platform/chromium/virtual/threaded/compositing/visibility/visibility-simple-webgl-layer.html = TIMEOUT PASS
// Started flaking at around http://trac.webkit.org/changeset/116278.
BUGWK85950 LINUX DEBUG : compositing/geometry/limit-layer-bounds-transformed-overflow.html = PASS TEXT
+
+BUGWK81416 : fast/dom/wrapper-scope.html = TEXT
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes