add a FIXME to the assert page

tests were failing (unnecessarily) on Chrome
pull/1/head
ansuz 9 years ago
parent ae039b0551
commit 9498937b43

@ -1,9 +1,11 @@
require.config({ paths: { 'json.sortify': '/bower_components/json.sortify/dist/JSON.sortify' } });
define([ define([
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
'/common/hyperjson.js', // serializing classes as an attribute '/common/hyperjson.js', // serializing classes as an attribute
'/common/hyperscript.js', // using setAttribute '/common/hyperscript.js', // using setAttribute
'/common/TextPatcher.js' '/common/TextPatcher.js',
], function (jQuery, Hyperjson, Hyperscript, TextPatcher) { 'json.sortify',
], function (jQuery, Hyperjson, Hyperscript, TextPatcher, JSONSortify) {
var $ = window.jQuery; var $ = window.jQuery;
window.Hyperjson = Hyperjson; window.Hyperjson = Hyperjson;
window.Hyperscript = Hyperscript; window.Hyperscript = Hyperscript;
@ -38,6 +40,10 @@ define([
var $body = $('body'); var $body = $('body');
/* FIXME
Chrome reorganizes your HTML such that id and class are in a opposite
orders. We need to do an equality check on the hyperjson, outerHTML
differences are not informative. */
var roundTrip = function (target) { var roundTrip = function (target) {
assert(function () { assert(function () {
var hjson = Hyperjson.fromDOM(target); var hjson = Hyperjson.fromDOM(target);

Loading…
Cancel
Save