Bug 1108382 - Part 12: Do not use non-standard flag argument of String.prototype.replace in testing/web-platform/tests/. r=jgriffin

This commit is contained in:
Tooru Fujisawa 2015-03-01 09:51:33 +09:00
parent 1a2f7387ed
commit 58864f469e
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ interface DeviceLightEvent : Event {
"use strict";
var idl_array = new IdlArray();
// replace 'EventHandler' and 'unrestricted double' unrecognised by idlharness.js
var idls = document.getElementById('idl').textContent.replace('EventHandler', 'Function?', 'g').replace('unrestricted double', 'double', 'g');
var idls = document.getElementById('idl').textContent.replace(/EventHandler/g, 'Function?').replace(/unrestricted double/g, 'double');
idl_array.add_untested_idls(document.getElementById('untested_idl').textContent);
idl_array.add_idls(idls);

View File

@ -59,7 +59,7 @@ interface UserProximityEvent : Event {
"use strict";
var idl_array = new IdlArray();
// replace 'EventHandler' and 'unrestricted double' unrecognised by idlharness.js
var idls = document.getElementById('idl').textContent.replace('EventHandler', 'Function?', 'g').replace('unrestricted double', 'double', 'g');
var idls = document.getElementById('idl').textContent.replace(/EventHandler/g, 'Function?').replace(/unrestricted double/g, 'double');
idl_array.add_untested_idls(document.getElementById('untested_idl').textContent);
idl_array.add_idls(idls);