Bug 903772: Part 9 - Use a different class in the weakmap test now that the implementation of TextDecoder has changed. r=peterv

This commit is contained in:
Kyle Huey 2013-08-22 22:17:10 -07:00
Родитель 4c7a770de0
Коммит 5b32f16814
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -45,11 +45,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=777385
make_live_map();
// TextDecoder is a non-nsISupports refCounted class using WebIDL bindings.
// RGBColor is a non-nsISupports refCounted class using WebIDL bindings.
// non-nsISupports cycle-collected classes should fail as weak map keys.
let context = new TextDecoder();
let context = window.getComputedStyle(document.documentElement, null).getPropertyCSSValue("color").getRGBColorValue();
let contextFail = false;
try {
live_map.set(context, 2);