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

Unified Diff: test/webkit/fast/js/kde/delete.js

Issue 21070002: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
« no previous file with comments | « test/webkit/fast/js/kde/crash-2-expected.txt ('k') | test/webkit/fast/js/kde/delete-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/kde/delete.js
diff --git a/test/webkit/declaration-in-block.js b/test/webkit/fast/js/kde/delete.js
similarity index 91%
copy from test/webkit/declaration-in-block.js
copy to test/webkit/fast/js/kde/delete.js
index 39c4fc06ce7958ba0d4c2f77e9faede8d67370d3..0acb308de4111c5e8e0159b0017cbf9fe6c85119 100644
--- a/test/webkit/declaration-in-block.js
+++ b/test/webkit/fast/js/kde/delete.js
@@ -21,9 +21,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-description(
-"This test checks that declarations in an if block can be seen outside it."
-);
-
-if (0) { var b; }
-var a = b;
+description("KDE JS Test");
+shouldBe("a = 1; delete a;", "true");
+shouldBe("delete nonexistant;", "true");
+shouldBe("delete NaN", "false");
« no previous file with comments | « test/webkit/fast/js/kde/crash-2-expected.txt ('k') | test/webkit/fast/js/kde/delete-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698