From 184db875cd7d27de64b0e7060d77fc7431d49498 Mon Sep 17 00:00:00 2001 From: Yoshi Huang Date: Mon, 14 Jul 2014 18:57:12 +0800 Subject: [PATCH] Bug 933588 - Part 3: update test cases. r=dimi --- dom/nfc/tests/marionette/head.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/nfc/tests/marionette/head.js b/dom/nfc/tests/marionette/head.js index 329a2cdddfc..30482f25816 100644 --- a/dom/nfc/tests/marionette/head.js +++ b/dom/nfc/tests/marionette/head.js @@ -228,6 +228,10 @@ const NDEF = { fields.forEach(function(value) { let field1 = Cu.waiveXrays(record1)[value]; let field2 = Cu.waiveXrays(record2)[value]; + if (!field1 || !field2) { + return; + } + is(field1.length, field2.length, value + " fields have the same length"); let eq = true;