'use strict';
var assert      = require('power-assert');
var Transformer = require('../../../lib/transformer');

describe('CodeGridMarkdown - Transformer - Demo', function() {


describe('#demo', function() {
  it('レンダリングされること', function() {
    var res = Transformer.transform('<div class="Demo">\n<h1>タイトル</h1>\n<iframe src="http://example.com" data-deferred></iframe>\n</div>\n');
    var expect = '<div class="CG2-livecode" data-livecode-deferred=""><header class="CG2-livecode__header"><div class="CG2-livecode__label">タイトル</div><div class="CG2-livecode__nav"><ul><li><a href="http://example.com" target="_blank"><span class="CG2-icon-tool"></span> 新規タブで開く</a></li></ul></div></header><div class="CG2-livecode__body"><iframe src="http://example.com" data-deferred=""></iframe></div></div>\n';
    assert.equal(res, expect);
  });
});


});

@@ -307,32 +307,37 @@
 %E3%83%AB%3C/h1%3E%5Cn%3Ciframe 
+data-
 src=%22http://exam
@@ -728,16 +728,21 @@
 %3Ciframe 
+data-
 src=%22htt
@@ -838,18 +838,596 @@
 ;%0A  %7D);%0A
+%0A  it('%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%81%95%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8 %E3%81%9D%E3%81%AE%E3%81%BE%E3%81%BE%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3', function() %7B%0A    var res = Transformer.transform('%3Cdiv class=%22Demo%22%3E%5Cn%3Ch1%3E%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%3C/h1%3E%5Cn%3Ciframe src=%22http://example.com%22%3E%3C/iframe%3E%5Cn%3C/div%3E%5Cn');%0A    var expect = '%3Cdiv class=%22CG2-livecode%22%3E%3Cheader class=%22CG2-livecode__header%22%3E%3Cdiv class=%22CG2-livecode__label%22%3E%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%3C/div%3E%3Cdiv class=%22CG2-livecode__nav%22%3E%3Cul%3E%3Cli%3E%3Ca href=%22http://example.com%22 target=%22_blank%22%3E%3Cspan class=%22CG2-icon-tool%22%3E%3C/span%3E %E6%96%B0%E8%A6%8F%E3%82%BF%E3%83%96%E3%81%A7%E9%96%8B%E3%81%8F%3C/a%3E%3C/li%3E%3C/ul%3E%3C/div%3E%3C/header%3E%3Cdiv class=%22CG2-livecode__body%22%3E%3Ciframe src=%22http://example.com%22%3E%3C/iframe%3E%3C/div%3E%3C/div%3E%5Cn';%0A    assert.equal(res, expect);%0A  
 %7D);%0A
+%7D);
 %0A%0A%7D);%0A

add test