Index: test/intl/date-format/utils.js |
diff --git a/test/mjsunit/compiler/minus-zero.js b/test/intl/date-format/utils.js |
similarity index 85% |
copy from test/mjsunit/compiler/minus-zero.js |
copy to test/intl/date-format/utils.js |
index 6efceb54e36834c217732a7974f0c5d2a2cca132..f53862b6e33d9fe84941611f1fd0f02f2e907974 100644 |
--- a/test/mjsunit/compiler/minus-zero.js |
+++ b/test/intl/date-format/utils.js |
@@ -24,14 +24,14 @@ |
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// limitations under the License. |
Jakob Kummerow
2013/07/10 09:31:51
accidental copy/paste?
|
-// Flags: --allow-natives-syntax |
+// Utility methods for date testing. |
-function add(x, y) { |
- return x + y; |
+/** |
+ * Returns date with timezone info forced into PDT. |
+ */ |
+function usePDT(dateString) { |
+ var removedTZ = dateString.replace(/(\+|-)\d{4}/, '-0007'); |
+ return removedTZ.replace(/\(.*?\)/, '(PDT)'); |
} |
- |
-assertEquals(0, add(0, 0)); |
-assertEquals(0, add(0, 0)); |
-%OptimizeFunctionOnNextCall(add); |
-assertEquals(-0, add(-0, -0)); |