Bug 629189 followup - Typo fixes a=DONTBUILD
authorMichael Yoshitaka Erlewine <mitcho@mitcho.com>
Mon, 14 Feb 2011 20:11:25 -0500
changeset 62538 4a6ba480150a97a7a66145f5bf91737a347c5351
parent 62537 db495f146676619f05a07e9a4a4bbb83e153b598
child 62539 89e6a984193148007ed0ec7b03e067f10516076d
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersDONTBUILD
bugs629189
milestone2.0b12pre
Bug 629189 followup - Typo fixes a=DONTBUILD
browser/base/content/tabview/modules/utils.jsm
browser/base/content/test/tabview/browser_tabview_bug629189.js
--- a/browser/base/content/tabview/modules/utils.jsm
+++ b/browser/base/content/tabview/modules/utils.jsm
@@ -152,17 +152,17 @@ Rect.prototype = {
       return box;
 
     return null;
   },
 
   // ----------
   // Function: contains
   // Returns a boolean denoting if the given <Rect> is contained within
-  // the this rectangle.
+  // this rectangle.
   //
   // Paramaters
   //  - A <Rect>
   contains: function Rect_contains(rect) {
     return (rect.left >= this.left &&
             rect.right <= this.right &&
             rect.top >= this.top &&
             rect.bottom <= this.bottom);
--- a/browser/base/content/test/tabview/browser_tabview_bug629189.js
+++ b/browser/base/content/test/tabview/browser_tabview_bug629189.js
@@ -3,12 +3,12 @@
 
 function test() {
   let {Rect} = Components.utils.import("resource:///modules/tabview/utils.jsm", {});
   
   let referenceRect = new Rect(50,50,150,150);
   let rect = new Rect(100,100,100,100);
   
   ok(referenceRect.contains(referenceRect), "A rect contains itself");
-  ok(referenceRect.contains(rect), "[50,50,150,150] contains [100,100,99,99]");
+  ok(referenceRect.contains(rect), "[50,50,150,150] contains [100,100,100,100]");
   rect.inset(-1,-1);
   ok(!referenceRect.contains(rect), "Now it grew and [50,50,150,150] doesn't contain [99,99,102,102]");
 }