Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: test/mjsunit/mjsunit.js

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: Don't put assert*Async helpers in mjsunit.js Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // values. 47 // values.
48 // For known primitive values, please use assertEquals. 48 // For known primitive values, please use assertEquals.
49 var assertSame; 49 var assertSame;
50 50
51 // Expected and found values are identical primitive values or functions 51 // Expected and found values are identical primitive values or functions
52 // or similarly structured objects (checking internal properties 52 // or similarly structured objects (checking internal properties
53 // of, e.g., Number and Date objects, the elements of arrays 53 // of, e.g., Number and Date objects, the elements of arrays
54 // and the properties of non-Array objects). 54 // and the properties of non-Array objects).
55 var assertEquals; 55 var assertEquals;
56 56
57
Dan Ehrenberg 2016/05/16 23:01:16 Revert the irrelevant deletion
caitp (gmail) 2016/05/16 23:08:31 Done.
58 // The difference between expected and found value is within certain tolerance. 57 // The difference between expected and found value is within certain tolerance.
59 var assertEqualsDelta; 58 var assertEqualsDelta;
60 59
61 // The found object is an Array with the same length and elements 60 // The found object is an Array with the same length and elements
62 // as the expected object. The expected object doesn't need to be an Array, 61 // as the expected object. The expected object doesn't need to be an Array,
63 // as long as it's "array-ish". 62 // as long as it's "array-ish".
64 var assertArrayEquals; 63 var assertArrayEquals;
65 64
66 // The found object must have the same enumerable properties as the 65 // The found object must have the same enumerable properties as the
67 // expected object. The type of object isn't checked. 66 // expected object. The type of object isn't checked.
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 if (sync_opt === undefined) sync_opt = ""; 442 if (sync_opt === undefined) sync_opt = "";
444 assertTrue(OptimizationStatus(fun, sync_opt) !== 1, name_opt); 443 assertTrue(OptimizationStatus(fun, sync_opt) !== 1, name_opt);
445 } 444 }
446 445
447 assertOptimized = function assertOptimized(fun, sync_opt, name_opt) { 446 assertOptimized = function assertOptimized(fun, sync_opt, name_opt) {
448 if (sync_opt === undefined) sync_opt = ""; 447 if (sync_opt === undefined) sync_opt = "";
449 assertTrue(OptimizationStatus(fun, sync_opt) !== 2, name_opt); 448 assertTrue(OptimizationStatus(fun, sync_opt) !== 2, name_opt);
450 } 449 }
451 450
452 })(); 451 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698