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

Unified Diff: test/webkit/fast/js/end-in-string-escape.js

Issue 20280003: 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
Index: test/webkit/fast/js/end-in-string-escape.js
diff --git a/test/webkit/instanceof-operator.js b/test/webkit/fast/js/end-in-string-escape.js
similarity index 85%
copy from test/webkit/instanceof-operator.js
copy to test/webkit/fast/js/end-in-string-escape.js
index 1230181584337c86a13846618b2cefe510239e59..e5c0906ada9390a472f523ae5a5daab9356ea0b3 100644
--- a/test/webkit/instanceof-operator.js
+++ b/test/webkit/fast/js/end-in-string-escape.js
@@ -21,13 +21,11 @@
// (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(
-"instanceof test"
-);
+description('Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=33641">bug 33641</a>: Assertion failure in Lexer.cpp if input stream ends while in string escape.');
+
+debug("Passed if no assertion failure.");
-getterCalled = false;
try {
- ({} instanceof { get prototype(){ getterCalled = true; } });
-} catch (e) {
+ eval('"\\');
+} catch (ex) {
}
-shouldBeFalse("getterCalled");
« no previous file with comments | « test/webkit/fast/js/date-toisostring-expected.txt ('k') | test/webkit/fast/js/end-in-string-escape-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698