| OLD | NEW |
| 1 var CShape = function(context, usePathObject) { | 1 var CShape = function(context, usePathObject) { |
| 2 this._context = context; | 2 this._context = context; |
| 3 | 3 |
| 4 if (usePathObject) | 4 if (usePathObject) |
| 5 this._path = new Path2D(); | 5 this._path = new Path2D(); |
| 6 else | 6 else |
| 7 this._path = context; | 7 this._path = context; |
| 8 }; | 8 }; |
| 9 | 9 |
| 10 CShape.prototype.usePathObject = function() { | 10 CShape.prototype.usePathObject = function() { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 debug("Test case 4: scrollPathIntoView(path2d) / CTM != identity"); | 147 debug("Test case 4: scrollPathIntoView(path2d) / CTM != identity"); |
| 148 scrollTest(CRect, 20, true, 136); | 148 scrollTest(CRect, 20, true, 136); |
| 149 scrollTest(CCapsule, 42, true, 106); | 149 scrollTest(CCapsule, 42, true, 106); |
| 150 scrollTest(CCurve, 63, true, 133); | 150 scrollTest(CCurve, 63, true, 133); |
| 151 scrollTest(CStar, 40, true, 160); | 151 scrollTest(CStar, 40, true, 160); |
| 152 debug(""); | 152 debug(""); |
| 153 | 153 |
| 154 debug("Test case 5: exceptions"); | 154 debug("Test case 5: exceptions"); |
| 155 shouldThrow("context.scrollPathIntoView(null);"); | 155 shouldThrow("context.scrollPathIntoView(null);"); |
| 156 shouldThrow("context.scrollPathIntoView(undefined);"); | |
| 157 shouldThrow("context.scrollPathIntoView([]);"); | 156 shouldThrow("context.scrollPathIntoView([]);"); |
| 158 shouldThrow("context.scrollPathIntoView({});"); | 157 shouldThrow("context.scrollPathIntoView({});"); |
| 159 debug(""); | 158 debug(""); |
| OLD | NEW |