Reviewers: kpreid2,
Description:
domado-special has a few tests that rely on the guest content being
larger than the guest viewport, and deleting the history-sniff
tests made the content sometimes smaller than the viewport.
So this change reduces the viewport size.
This fixes
https://code.google.com/p/google-caja/issues/detail?id=1874
Please review this at https://codereview.appspot.com/40370044/
Affected files (+7, -7 lines):
M tests/com/google/caja/plugin/test-domado-special-guest.html
M tests/com/google/caja/plugin/test-domado-special-initial-state.html
Index: tests/com/google/caja/plugin/test-domado-special-guest.html
===================================================================
--- tests/com/google/caja/plugin/test-domado-special-guest.html (revision
5643)
+++ tests/com/google/caja/plugin/test-domado-special-guest.html (working
copy)
@@ -340,19 +340,19 @@
return w;
}
- assertEquals('initial scrollable dimensions', '600,400', windowDims());
+ assertEquals('initial scrollable dimensions', '600,300', windowDims());
assertEquals('initial width', 600, windowStyleWidth());
window.resizeBy(0, 0);
- assertEquals('scrollable dimensions 1', '600,400', windowDims());
+ assertEquals('scrollable dimensions 1', '600,300', windowDims());
assertEquals('width 1', 600, windowStyleWidth());
- window.resizeBy(-100, 200);
- assertEquals('scrollable dimensions 2', '500,600', windowDims());
+ window.resizeBy(-100, 123);
+ assertEquals('scrollable dimensions 2', '500,423', windowDims());
assertEquals('width 2', 500, windowStyleWidth());
- document.defaultView.resizeTo(600, 400);
- assertEquals('scrollable dimensions 3', '600,400', windowDims());
+ document.defaultView.resizeTo(600, 300);
+ assertEquals('scrollable dimensions 3', '600,300', windowDims());
assertEquals('width 3', 600, windowStyleWidth());
pass('testResizing');
Index: tests/com/google/caja/plugin/test-domado-special-initial-state.html
===================================================================
--- tests/com/google/caja/plugin/test-domado-special-initial-state.html
(revision 5643)
+++ tests/com/google/caja/plugin/test-domado-special-initial-state.html
(working copy)
@@ -31,7 +31,7 @@
title="<Untrusted Content Title>"
style="position: relative;
width: 600px;
- height: 400px;
+ height: 300px;
color: rgb(3,6,9);
cursor: crosshair;
/* on IE, width and height aren't limited for overflow: visible */
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.