Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29A5D10927 for ; Fri, 28 Mar 2014 14:15:27 +0000 (UTC) Received: (qmail 94594 invoked by uid 500); 28 Mar 2014 14:15:26 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 94063 invoked by uid 500); 28 Mar 2014 14:15:20 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 93851 invoked by uid 99); 28 Mar 2014 14:15:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2014 14:15:17 +0000 Date: Fri, 28 Mar 2014 14:15:17 +0000 (UTC) From: "Ian Clelland (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-6373) Do-not-call spies won't error if an exception is thrown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ian Clelland created CB-6373: -------------------------------- Summary: Do-not-call spies won't error if an exception is thrown Key: CB-6373 URL: https://issues.apache.org/jira/browse/CB-6373 Project: Apache Cordova Issue Type: Bug Components: mobile-spec Reporter: Ian Clelland Assignee: Ian Clelland In the mobile spec test runner, the function created by {{createDoNotCallSpy}} logs an error message containing the JSON serialization of the function arguments, and then makes a false assertion, to cause a test to fail. If the function arguments are not JSON-serializable, then an exception will be thrown in the spy, and failure will never be asserted. If a test is counting on a doNotCallSpy to not be called, it may succeed, since the spy will never cause a test failure. (This was noticed because one of the File tests, file.spec.9, was failing unnoticed on iOS until FileEntry objects became serializable with CB-6352) -- This message was sent by Atlassian JIRA (v6.2#6252)