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

Unified Diff: test/webkit/const-without-initializer.js

Issue 18068003: Migrated several tests from blink to V8 repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: test/webkit/const-without-initializer.js
diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/const-without-initializer.js
similarity index 87%
copy from test/webkit/resources/standalone-post.js
copy to test/webkit/const-without-initializer.js
index d157e78bfa084329e2ec1a9b7d6ad456e904c152..9eb036522a05920b2c1441b387002f91811d1752 100644
--- a/test/webkit/resources/standalone-post.js
+++ b/test/webkit/const-without-initializer.js
@@ -21,6 +21,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-wasPostTestScriptParsed = true;
+description(
+'Tests that declaring a const variable without initializing has the correct behavior and does not crash'
+);
-finishJSTest();
+const f;
+
+shouldBe('f', 'undefined');
+
+f = 10;
+
+shouldBe('f', 'undefined');
« no previous file with comments | « test/webkit/comparison-operators-less-expected.txt ('k') | test/webkit/const-without-initializer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698